Assign customer to bot
Assigns the customer with customer_id to the bot with bot_id. By default the bot starts immediately at its start node.
Path Parameters
- Type: integercustomer
_id requiredIdentifier of the customer.
- Type: integerbot
_id requiredIdentifier of the bot to assign the customer to.
Body
application/json
- Type: booleanlaunch
If
true, the bot starts immediately. Iffalse, the bot waits until the customer sends a message. - Type: stringnode
Node reference to start the bot from. Defaults to the
startnode. Right-click a node in the builder and choose Copy reference to obtain it.
Responses
- application/json
- application/json
Request Example for put/customers/{customer_id}/assign_bot/{bot_id}/
curl https://api.landbot.io/v1/customers/1/assign_bot/1/ \
--request PUT \
--header 'Content-Type: application/json' \
--header 'Authorization: Token YOUR_AGENT_TOKEN' \
--data '{
"launch": false,
"node": "Nk879f44j"
}'
{
"success": true
}