Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, let’s try to create the next case:

  1. Chatbot sends contact information (we will use the already configured logic)

  2. Chatbot asked: “Please confirm that the information provided is correct” and show 2 buttons:

    • Confirm

    • Decline

  3. If the client clicked Confirm, the bot writes: “Thank you, the information is confirmed

  4. If the client clicked decline, the bot writes: “Please enter a valid full name” and replaces the full name in the contact card with the information that the client enters

...

  1. Select the element User task

  2. Select Beesender: Button message from the list

  3. Fill in the fields:

    • ChatId, ClientId, OperatorId

    • Message: Please confirm that the information provided is correct

    • Button 1: Confirm

    • Button 2: Decline

  4. Add element OR

  5. Click on a flow and set the condition:

    • parameter Answer from Beesender: Button message element == parameter Button 1 from Beesender: Button message element

      Image Added
  6. Add another flow from element OR and set the condition:

    • parameter Answer from Beesender: Button message == parameter Button 2 from Beesender: Button message element

      Image Added
  7. Add the last flow from element OR to Beesender: Button message 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

    Image Added
  8. Add Beesender: Text message element on Confirm flow and field in fields:

    • ChatId, ClientId, OperatorId

    • Text: Thank you, the information is confirmed

  9. Add Beesender: Button message element on Decline flow and field in fields:

    • ChatId, ClientId, OperatorId

    • Message: Please enter a valid full name

    • Leave all other fields blank

  10. Add Modify data element, select Contact object, where Id = Id from Read Contact data element

  11. Select column Full name and set to this field the parameter Answer from previous Beesender: Button message element

  12. Image Added

    Save your process

    Image Added
  13. Go back to your channel and write a new message to trigger a chatbot

  14. Select buttons to see the result

Beesender subprocesses

The Beesender package includes several processes, that can be useful in your chatbot business process.

...