...
Start event – use this element as the beginning of your process
Beesender: Text message – use this element to send messages without buttons (for example, greeting, parting, some information, when you don’t expect a response to this message)
Beesender: Button messageAsk question – use this element to send messages with buttons OR when you want to receive an answer to your question
Beesender: Send image – use this element to send an image
Beesender: File – use this element to send a file
Beesender: Send location – use this element to send the location
Exclusive gateway (OR) – Exclusive gateway (OR)
...
Go to the section Process library Library and click New Process
Fill in a name of your process and a code
Go to the Parameters tab and create 3 required parameters:
...
Follow the link to learn more about working with the [Formula] process element
Beesender:
...
Ask question
Info |
---|
Use Beesender: Button messageAsk question element to send messages with buttons OR when you want to receive an answer to your question. |
The Beesender: Text messageAsk question has the following mandatory parameters:
...
Select the element User task
Select Beesender: Button messageAsk question from the list
Fill in the fields:
ChatId, ClientId, OperatorId
Message: Please confirm that the information provided is correct
Button 1: Confirm
Button 2: Decline
Add element OR
Click on a flow and set the condition:
parameter Answer from Beesender: Button message Ask question element == parameter Button 1 from Beesender: Button message Ask question element
Add another flow from element OR and set the condition:
parameter Answer from Beesender: Button message Ask question == parameter Button 2 from Beesender: Button message Ask question element
Add the last flow from element OR to Beesender: Button message Ask question element and select flow type = Default type – this is necessary so that if the client doesn't select the buttons, but writes something, the process doesn't break, and repeats the previous question
Add Beesender: Text message element on Confirm flow and field in fields:
ChatId, ClientId, OperatorId
Text: Thank you, the information is confirmed
Add Beesender: Button messageAsk question element on Decline flow and field in fields:
ChatId, ClientId, OperatorId
Message: Please enter a valid full name
Leave all other fields blank
Add Modify data element, select Contact object, where Id = Id from Read Contact data element
Select column Full name and set to this field the parameter Answer from previous Beesender: Button messageAsk question element
Save your process
Go back to your channel and write a new message to trigger a chatbot
Select buttons to see the result
...