Versions Compared

Key

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

...

Info

The package in which you create a business process must depend on the Beesender package

Table of Contents

What elements make up a chatbot?

When creating a chatbot, you will use the following main business process elements:

...

Info

Use Beesender: Text message element to send messages without buttons, for example, greeting, parting, some information, when you don’t expect a response to this message

As you already know, the Beesender: Text message has the following mandatory parameters:

Filed

Value

ChatId

[#ChatId#]

ClientId

[#ClientId#]

OperatorId

[#OperatorId#]

Text

The message you want to send

In the Text field, you can not only write text but also enter the parameters read from the object. It can be like the name of the contact, today's date, and so on.

...

  1. First, add the element Read data and select Contact in the Object field

  2. Next, select the element User task

  3. Select Beesender: Text message from the list

  4. Fill in the fields: ChatId, ClientId, OperatorId

  5. Click on the Text field and select Formula

    • Text that you type without using a parameter must be enclosed in quotation marks, for example: “Contact Contact information:

    • To add a parameterconnect the parameters together into one text, use the + sign

    • To add a new line use “\n”

    • To convert a parameter whose data type is not a string, convert it. To do this, after the parameter brackets, write: .ToString(), for example: [#Date#].ToString()

...

  • "Contact information:"+"\n"+"\n"+"Name: "+[#Read Contact data.First item of resulting collection.Full name#]+"\n"+"Date of birth: "+[#Read Contact data.First item of resulting collection.Birth date#].ToString()+"\n"+"Mobile phone number: "+[#Read Contact data.First item of resulting collection.Mobile phone#]

...

6. Click Save to close Formula

7. And click Save, to save your process

8. Open your channel and write a new message to trigger a chatbot

...

Tip

As result, you receive the next message:

Contact information:

Name: Full name from a contact card
Date of birth: date/time from a contact card
Mobile phone number: mobile phone from a contact card

...

Follow the link to learn more about working with the [Formula] process element

Beesender: Button message

Info

Use Beesender: Button message element to send messages with buttons OR when you want to receive an answer to your question.

The Beesender: Text message has the following mandatory parameters:

Filed

Value

ChatId

[#ChatId#]

ClientId

[#ClientId#]

OperatorId

[#OperatorId#]

Message

The message you want to send

Button 1 - Button 9

The text displayed on the button for selecting the client's response to the chatbot. During the dialogue with the chatbot, only those buttons that are filled in are displayed

Answer

Leave this field blank

Beesender subprocesses

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

...