Interact with Step-by-step Guides in a chat widget.
- AWS Documentation: "Step-by-step Guides"
- Launch Announcement
- Ensure that the communication widget has support for interactive messages. eg:
amazon_connect('supportedMessagingContentTypes', [ 'application/vnd.amazonaws.connect.message.interactive','application/vnd.amazonaws.connect.message.interactive.response' ])
- Ensure to use an updated amazon-connect-chat-interface which has built in support for guides in chat.
- Provide the instance alias and configuration to the init function:
// Initialize the chat widget
connect.ChatInterface.init({
containerId: rootElemId, // This is the id of the container where you want the widget to reside
guidesInChat: {
instanceAlias: 'instanceAlias', // This is the alias of your connect instance
version: 'latest' // optional and defaults to latest. This is the version of the guides renderer to be fetched
}
});
- Ensure to add interactive messages to the supportedMessagingContentTypes configuration. eg:
supportedMessagingContentTypes: "application/vnd.amazonaws.connect.message.interactive,application/vnd.amazonaws.connect.message.interactive.response"
Guides in chat works by fetching the guides renderer to be used in the chat widget with the above configuration. Guides in chat will not work without providing instanceAlias in guidesInChat config.
The version (defaults to 'latest' when not provided) corresponds to the version of the guides renderer to be fetched. 'latest' will fetch the up to date renderer and is the only supported version as of today.
The version can be specified (eg: 2.3.4) when versions of the renderer is released.