Chatbot
Chatbot – Flow
First of all, to trigger the flow the frontend must be enabled.
You can enable frontend on System -> Configuration.
After it, you must enable the chat on the frontend.
You can enable frontend on System -> Configuration -> Chat -> Configurations
Here, on Configurations -> Enabling, you will have to enable the “Enabled in Frontend” field.
The functionality behind the Bot in Deepser lies behind a flow with a trigger of type chatbot. The Chatbot flow trigger type is executed every time a new chat is created in the frontend area.
Create a Bot
- To create a bot, open System > Chat > Bot and click the button “Add Bot”.
2. Configure your bot
Field | Description |
Name | The name of the Bot. |
Flow Heather | The flow to which the Bot is connected. |
Status | Status of Bot. It can be enabled or disabled. |
Avatar | The image of Bot. |
After it, we have to open the template of the chat. We must add to the form the field “Bot”.
Chat Bot Actions
Send Message
This action type is used to directly send a text message on the created chat.
To configure this, you need to open the “Send Message” script. For do this, click “”.
- Open: Action > Chat Bot > Send Message.
2. Write your message in the field called “Message” and, after it, click “Save”.
Ask For Details
This action is used to send a message in the form of a question that waits for a response.
The response can be of type String or Attachment. This response can be used as a variable later on the flow.
To configure this, you need to open the “Ask For Details” script. To do this, click “+”.
- Open: Action > Chat Bot > Ask For Details.
2. Write your message in the field called “Message” and after click “Save”.
Present Options
By using this action, on the chatbot will appear a message in the form of a select field from which the user can select only one answer and cannot type a custom message or add an attachment. The options are mapped through the “value” field which has the role of a key and the “label” field which is the visible option to the user.
To configure this, you need to open the “Ask For Details” script. To do this, click “+”.
- Open this: Action > Chat Bot > Present Options.
2. Write your message in the field called “Message”, insert your options on field “Options” and save clicking the button “Save”.
If you set the field “Add Variable Options” to “ON” you have the opportunity to add an array of options that are retrieved from upper steps of the flow and set to an output variable.
Chat With Operator
By using this action, the chat is assigned to a specific user present in Deepser who can be an administrator, agent, key user.
With this action, the assigned user can then chat directly with the frontend user.
To configure this, you need to open the “Chat With Operator” script. To do this, click “+”.
- Open: Action > Chat Bot > Chat With Operator.
- Message
On this field is written the text that will be displayed on the chat, informing the frontend user that from now on their request will be assigned to an agent.
- Notification Message
This field contains the text message that will be sent to the assigned user.
- Operator
This field holds a variable of type DeepAdmin- User Model and here is where we assign the user variable retrieved from upper stages of the flow.