EPManagerDelegate
public protocol EPManagerDelegate : NSObjectProtocol
The EPManager delegate protocol composed of methods allowing to catch specific EPManager events.
-
epManagerFetchExternalInputOptions(contextKey:botUuid:botContext:defaultInputOptions:completion:)Default implementationCalled when a chat input needs options that have to be fetched externally.
Default Implementation
Declaration
Swift
func epManagerFetchExternalInputOptions(contextKey: String, botUuid: String, botContext: [EPContextObject], defaultInputOptions: [EPInputOption], completion: @escaping (_ response: EPWorkflowManagerDataSourceResponse) -> ())Parameters
contextKeyThe chat input context key.
botUuidThe chat input matching bot UUID.
completionMust be called in order to let the EPManager knowing how to continue the bot.
responseA EPWorkflowManagerDataSourceResponse enum value which must be provided depending on the options fetching result.
-
epManagerChatConversationDidUpdate(chatConversationId:)Default implementationCalled when a chat conversation has been updated.
Default Implementation
Declaration
Swift
func epManagerChatConversationDidUpdate(chatConversationId: String)Parameters
chatConversationIdThe id of the updated chat conversation.
-
epManagerChatConversationContextDidUpdate(chatConversationId:inserts:updates:botContext:)Default implementationCalled when a chat conversation context has been updated.
Default Implementation
Declaration
Swift
func epManagerChatConversationContextDidUpdate(chatConversationId: String, inserts: [EPContextObject], updates: [EPContextObject], botContext: [EPContextObject])Parameters
chatConversationIdThe id of the updated chat conversation.
insertsThe values that have been added to the chat conversation context.
updatesThe values that have been updated in the chat conversation context.
botContextThe whole chat conversation context.
-
epManagerAsyncTaskCalled(asyncTaskId:botUuid:botContext:completion:)Default implementationCalled when a bot needs an asynchronous task to be executed.
Default Implementation
Declaration
Swift
func epManagerAsyncTaskCalled(asyncTaskId: String, botUuid: String, botContext: [EPContextObject], completion: @escaping (_ response: EPWorkflowManagerAsyncTaskResponse) -> ())Parameters
asyncTaskIdThe id of the asynchronous task to execute.
completionMust be called at the end of the asynchronous task in order to let the EPManager knowing how to continue the bot.
responseA EPWorkflowManagerAsyncTaskResponse enum value which must be provided depending on the asynchronous task result.
EPManagerDelegate Protocol Reference