![]() ![]() Also, the esp-proc-timeout configuration option is what specifies the number of seconds to process all incoming ESP requests from the workflow. ImportantSince a single thread is being used to deliver all notifications to a bot, the methods implemented in the ChatBot and ChatBotFactory interfaces must not delay the thread which calls those methods. The bot must not use the "slf4j" logger directly. The bot must use the logger obtained through "." or ChatBotPlatform.getLogger().It is recommended to use ESP_REQUEST as a source in getUserData(UserDataSource) of getInteractionInfo() in GenesysChatSession to avoid a possible race condition between workflow and bot launching.The implementation of ChatBot and ChatBotFactory interface must not introduce new methods with the same names (and different parameters) which are already defined in the interface.If you need to change the name and/or package of the ChatBotFactory implementation class, update the file ".chatbotapi.ChatBotFactory" in folder "src\main\resources\META-INF\services" of your project.When implementing methods of the ChatBot interface, you must use the ChatBotPlatform cbpInstance class in order to send messages or notices into the chat session, leave the chat session, and update the userdata of interaction in workflow.For example, you can change the getBotId() method if a different bot ID is needed. You can modify and/or extend the default implementation of the ChatBotFactory interface. ![]() You must implement the bot's logic in the methods of the ChatBot interface. BGS also initializes and provides bot configuration through the ChatBotFactory interface. BGS invites bots into chat session via ChatBotFactory interface and then relays the chat session activity to the bot via the ChatBot interface.Provide a workflow which starts, stops, and manages the bot.īot implementation guidelines Bot implements two interfaces.Observe the DMS logs to ensure the bot loads successfully.Use this approach if you need to provide sensitive data (for example, password) in bot configuration. The file name can be absolute or relative (in case of relative filename, the bots-repo directory is treated as a root folder). Contain the full path to the file with JSON (line breaks allowed).Contain a JSON string (enclosed between without line breaks).The value provides the configuration for the bot, which is provided to the bot with method initialize of type KeyValueMap.The key contains the name of the bot plugin jar file (which is placed into the bots-repo folder).Open the DMS Application object and go to the section (you must create the section if it is absent). Copy the bot plugin JAR file to the subfolder media-channel-drivers/channel-chatbot/bots-repo in the DMS installation folder.The resulting JAR file is in the target subfolder of the project. Right-click on the project from the Projects view.Implement your bot by following the directories from Bot implementation guidelines.Package (Optional) - Package for Java classes (should be generated based on Group Id and Project Name).Project Location - Where project will be placed.Project Name - Name of the project (same as artifact ID).Use the Search field to find the ChatBotArchetype archetype or select from the Known Archetypes list.Restart NetBeans (if NetBeans is running).Multimedia Connector for Skype for Business.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |