Skip to content
Landbot logo

Connectors / Customer service · HTTP Connector

Automate Landbot with Tray.ai

Send a text message, assign customer to agent and create a field in Landbot, and start a workflow when Landbot sends “Customer message”.

What can you do with Landbot on Tray.ai?

Landbot is a no-code chatbot builder for websites and WhatsApp, letting teams design conversational flows and hand chats to human agents. Tray.ai connects to Landbot through the HTTP Connector, so your workflows can call the Landbot API alongside the rest of your stack.

  • When Landbot sends “Customer message”, save the chat to the contact's record in your CRM.
  • Assign customer to agent in Landbot when your CRM marks them as a high-value account.
  • Send a WhatsApp template to confirm an order as soon as your e-commerce platform records it.
  • When Landbot sends “Agent message”, log the reply in your help desk so the case history stays complete.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://api.landbot.io/v1

Set it up

Connect Landbot to Tray.ai

Each step uses Landbot's own API details, from its documentation.

Step 1

Save Landbot's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.landbot.io/v1 as the base URL. Or paste a cURL example from Landbot's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List customers”

It's one of 22 documented actions, under Customers. The response comes back as data the next step can map into your other apps.

Step 4

Start workflows from Landbot events

Give Landbot the URL of a Tray.ai webhook trigger. “Customer message” can then start a workflow, and so can 2 other events.

Workflows to build with Landbot

Each one uses actions and events from Landbot's own API documentation.

Create HubSpot contacts from Landbot chat leads

When

Customer message

Then

  1. Get a customer with the details collected by the bot
  2. Create or update the contact in HubSpot

With HubSpot

Hand Landbot chats to an agent when a Zendesk ticket opens

When

A ticket is created in Zendesk

Then

  1. Assign customer to agent
  2. Send a text message telling the customer an agent will reply

With Zendesk

Send WhatsApp updates when a Shopify order ships

When

An order is fulfilled in Shopify

Then

  1. Send a WhatsApp template with the tracking details
  2. Assign customer to bot to handle follow-up questions

With Shopify

Apps you can build on Landbot data

Internal tools your team can build with an AI assistant, each one using Landbot calls from its API documentation.

Chat handoff queue

Lists customers with their message history and lets a lead assign each one to a human agent.

Agent reply console

Shows a customer's messages and lets an agent reply with text or a WhatsApp template, then hand back to the bot.

Give your AI agents Landbot tools

Build an MCP server on Landbot in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List customers
  • Send a text message
  • Assign customer to agent
  • Get a field
  • List channels
  • List message hooks
  • Get a customer
  • Archive a customer

What the Landbot API covers

6 resources and 22 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Customers

  • List customers
  • Get a customer
  • Archive a customer
  • Delete a customer

Messages

  • Send a text message
  • Send an image
  • Send a WhatsApp template
  • Get customer messages

Assignments

  • Assign customer to agent
  • Assign customer to bot
  • Unassign a customer

Customer fields

  • Get a field
  • Create a field
  • Update a field
  • Delete a field

Channels

  • List channels
  • Get a channel
  • List WhatsApp templates

Message hooks

  • List message hooks
  • Create a message hook
  • Update a message hook
  • Delete a message hook

Events Landbot can send to a Tray.ai webhook trigger

  • Customer message
  • Bot message
  • Agent message

Checked against Landbot's own documentation on 2026-10-22

dev.landbot.io/api-reference/platform

Frequently asked questions

What can a Tray.ai workflow do in Landbot?

+

The Landbot API documents 22 actions across 6 resources (Customers, Messages, Assignments, Customer fields, Channels, Message hooks). For example: List customers; Send a text message; Assign customer to agent. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Landbot?

+

The Landbot API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Landbot events can start a Tray.ai workflow?

+

Landbot sends 3 events to a webhook URL, for example: Customer message; Bot message; Agent message. A Tray.ai webhook trigger receives them and starts a workflow.

See Landbot working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.