The Bot API Trigger is used to send a chatbot flow to customers through an API.

(1) Trigger Name: Enter the trigger name
(2) Apply Channels: Select the channel(s) you want to apply
(3) API Token
- API Token: This is used exclusively for the API created by that specific trigger and cannot be used for APIs created by other triggers. It’s recommended to use this token for enhanced security.
- Biz Token: This token can be used for all APIs.
(4) Customer: Select the customer from the System
(5) Set Attributes: You can set attributes for the customer through the API by selecting Add in the Set Attributes section
(6) Go to Block: select the block to send when calling the API

After creating it, you will receive the API to call the block in the Bots–Auto module.
Method: POST
(1) – API URL
(2) – Authorization
(3) – Body

Body
{
"customer": {
"pid": "",
"page_pid": ""
},
"attrs": [
{
"name": "",
"value": ""
}
]
}
You can retrieve the values for pid and page_pid from the Customer module.
