In the new version, WebChat introduces improved error handling for the "/session" request. If there is an error encountered during the establishment of a session, the error will be properly handled and displayed to the user. This ensures that users are informed about any issues with session creation and can take appropriate action.
The BlockingOperation mechanism in WebChat allows bot designers to execute long-running or computationally intensive tasks without blocking the main thread, ensuring a responsive and smooth user experience. Here's a description of how the mechanism works:
To initiate a blocking operation, bot designer need to set the BlockingOperation command within the Automate Node.
When the webchat receives a message with the BlockingOperation command, WebChat recognizes it as a signal to initiate a blocking operation. WebChat then takes over the input handling and temporarily blocks any new user messages from being sent to the server.
Once the BlockingOperation command is received, WebChat blocks the input field, preventing the user from sending new messages during the execution of the blocking operation. The chat interface remains in a waiting state until the blocking operation is completed.
Once the blocking operation is completed, WebChat resumes normal functionality. The input field is re-enabled, allowing the user to send messages again. The chat interface returns to its interactive state, and the user can continue the conversation with the bot.
|Field name (* - required)
Updated 8 months ago