Start a test conversation

​

Served only where test conversations are switched on. Anywhere else there is no such path, and you get a 404 as an HTML page.

Starts a new conversation with the bot's test copy, the one PUT /bots/{bot_id}/test deploys the draft to, as a visitor of it. Each call starts clean: nothing is remembered from any conversation before it. No family but these two has a test copy you can talk to this way.

A web bot (channel_family: landbot) is talked to as a new visitor of its test link. Nothing is sent to start it: exactly as the web chat sends nothing when it opens, the greeting is what the conversation's messages open with.

A WhatsApp bot (channel_family: whatsapp) is talked to through Meta, for real: a WhatsApp number of Landbot's, set aside here to play the visitor, writes to Landbot's WhatsApp testing number, and the bot answers it as it answers anyone testing it on their phone. Starting one is what choosing the bot to test on a phone does: the bot's test copy is set on the brand's WhatsApp testing channel with the visitor's number (added to the brand the first time), its context is reset, and the testing number sends the visitor its testing template, which is what the conversation's messages open with. The bot starts when the visitor writes. The visitor's number has one chat on that channel, so every start answers the same conversation id: starting again resets the bot and its messages read from that start onward. Starting one with another bot of the brand links that bot instead, and the first bot's conversation is not found any more: run them one after another, never side by side. Every message is a real WhatsApp message, billed by Meta as one. Where no number can play the visitor, it is refused with 409 (whatsapp_test_visitor_unavailable).

Takes no body, scope bots:write.

Path Parameters

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/bots/{bot_id}/test/conversations
curl https://api.landbot.io/v0-alpha/bots/123e4567-e89b-12d3-a456-426614174000/test/conversations \
  --request POST \
  --header 'Authorization: Token YOUR_AGENT_TOKEN'
{
  "data": {
    "id": "7d0c7f0e-3a4b-4e8e-9a59-2f1f0f1f7c11",
    "bot_id": "123e4567-e89b-12d3-a456-426614174000",
    "created_at": "2026-09-16T09:18:19"
  }
}