Guides
Webchat
Setup a chatbot bot using webchat
Initial setup
In this guide we will be using the stubref
routing method.
Here is more details on other routing methods
Now that you have your basic template setup you can proceed with adding chat bot functionality
Default context
Navigate to default context and click on Edit Flow
- Add actions
_create
,_update_from_webchat
_create
action executes on stub creation. This action will be used to initialize the conversation_update_from_webchat
action is executed but the stubber system when a new message is sent from the client
- In
_create
action add the notification itemWebchat notification to session
- In the notification update
sessionuuid
andwebchat_message.value
as seen below
- Now your webchat will reply to you with
This is a message from create action
- This message will create a link between the webchat session and this stub session for 24 hours
- All payloads will now be sent to this stub
- Messages will be automatically placed in
stubpost.message
- To respond to further messages add the notification item
Webchat notification to session
to_update_from_webchat
- configure the notification as seen below
- Now all future messages from this stubsession will be handled by this stub