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

  • Identifier of the customer.

  • Identifier of the bot to assign the customer to.

Body

application/json
  • If true, the bot starts immediately. If false, the bot waits until the customer sends a message.

  • Node reference to start the bot from. Defaults to the start node. 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
}