Skip to main content

Integrate ChatBot.com with Omnisend

Learn how to connect ChatBot.com with Omnisend

Written by Armintas Griežė

ChatBot.com is an AI agent and chatbot platform, now part of Text – the customer service platform from the team behind LiveChat. Visitors chat with your AI agent or your team through the website widget, the chat page, and other channels.

With the Omnisend integration, new chats and submitted chat forms are sent to Omnisend as custom events. The visitor is added to or updated in your Omnisend audience, so you can follow up on chat conversations with automated emails and SMS.


Benefits

  • Follow up on every identified chat. Start automations as soon as a known visitor starts a chat.

  • Turn chat forms into leads. Visitors who leave their email address or phone number in a chat form are added to Omnisend.

  • Personalize with chat context. Use details such as the page the visitor came from, chat tags, and form answers in your messages.

How It Works

The integration uses webhooks. ChatBot.com sends data to Omnisend when:

  • A new chat starts – recorded as the ChatBot.com - Chat started custom event.

  • A visitor submits a form in the chat, such as a pre-chat form or a form that asks for their email – recorded as the ChatBot.com - Form submitted custom event.

Omnisend creates or updates the contact using the visitor's email address or phone number. Chats and forms without an email address or a phone number are not sent to Omnisend, because Omnisend needs one of them to identify the contact. Visitors often start chatting anonymously, so a chat is only sent when the visitor is already known in ChatBot.com or shares their email address in a pre-chat form.

Before You Begin

  • You need access to Settings → Integrations → API access in your Text (ChatBot.com) account.

  • To send ChatBot.com - Form submitted events, your chat must use a form that asks for an email address or phone number, such as a pre-chat form.

Setup Process

Step 1. In Omnisend, go to Apps → search for ChatBot.com → click Connect now. Turn on the features you want to use and copy the webhook URL of each enabled feature:

  • ChatBot.com - Chat started – sends new chats to Omnisend.

  • ChatBot.com - Form submitted – sends submitted chat forms to Omnisend.

Step 2. In your Text (ChatBot.com) account, go to Settings → Integrations → API access → open the Webhooks tab → click Create webhook (or New webhook if you already have webhooks).

Step 3. Select the Webhook trigger that matches the feature (see the table below) → paste the matching webhook URL from Omnisend into Webhook URL → optionally enter a Webhook description → click Create webhook. Text then shows a secret key – you don't need it for this integration, so click Close.

Step 4. Repeat Step 3 for each enabled feature. Each feature needs its own webhook with its own URL.

Use the following webhook trigger for each feature:

Feature in Omnisend

Webhook trigger in Text

ChatBot.com - Chat started

incoming_chat

ChatBot.com - Form submitted

incoming_event

The incoming_event trigger also covers chat messages. Omnisend only uses submitted forms and ignores other chat events.

What Data Is Passed

Contact Fields

ChatBot.com sends the following contact fields to Omnisend:

Omnisend field

Source in ChatBot.com

Sent with

Email

The visitor's email address, or the email field of a chat form

Both events

Phone

The visitor's phone number, or the phone field of a chat form

Both events

First name

The first word of the visitor's name

Both events

Last name

The rest of the visitor's name

Both events

Country, Country code, City

The visitor's location

ChatBot.com - Chat started

ChatBot.com names anonymous visitors Customer. This default name is not saved to the contact.

Custom Events

ChatBot.com sends the following custom events to Omnisend:

Feature

Custom Event Name

When it fires

ChatBot.com - Chat started

ChatBot.com - Chat started

A new chat starts, and the visitor has an email address or phone number

ChatBot.com - Form submitted

ChatBot.com - Form submitted

A visitor submits a chat form that includes an email address or phone number

ChatBot.com - Chat started Custom Event Fields

The ChatBot.com - Chat started custom event includes the following custom event fields. A field is only sent when it has a value.

Field

Description

chat_id

ID of the chat

thread_id

ID of the chat thread

started_at

Time the chat started

customer_id

ID of the visitor in ChatBot.com

customer_name

Name of the visitor

agents

Names of the agents or AI agent in the chat

tags

Tags added to the chat

form_type

Type of form filled in when the chat started, such as prechat

form_answers

Other answers from that form, by question label

referrer

Page that referred the visitor

page_url

Last page the visitor opened

page_title

Title of that page

country

Visitor's country

city

Visitor's city

chats_count

Number of chats the visitor has had

visits_count

Number of visits by the visitor

queue_wait_time

Time the visitor waited in the queue, in seconds

ChatBot.com - Form submitted Custom Event Fields

The ChatBot.com - Form submitted custom event includes the following custom event fields:

Field

Description

chat_id

ID of the chat

thread_id

ID of the chat thread

form_id

ID of the form

form_type

Type of form

submitted_at

Time the form was submitted

customer_id

ID of the visitor in ChatBot.com

customer_name

Name entered in the form

answers

Other answers from the form, by question label

Create Automation Workflows with ChatBot.com Events

You can use the custom events sent to create Automation Workflows in Omnisend. Go to Automation → Create workflow → Create from scratch. In the trigger area, select your custom event.

Note: The custom event must be synced to Omnisend at least once before you can select it as an automation trigger.

Here are example workflows you can build:

  • Chat follow-up: When ChatBot.com - Chat started occurs, send an email that thanks the contact for reaching out and links to your help pages.

  • New lead welcome: When ChatBot.com - Form submitted occurs, send a welcome email to the contact who left their details in the chat.

  • Topic-based offer: When ChatBot.com - Chat started occurs and the chat has a specific tag, send an email with products or content related to that topic.

FAQ

Why didn't a new chat appear in Omnisend?

Chats from anonymous visitors are not sent because Omnisend needs an email address or phone number to identify the contact. Ask visitors for their email address in a pre-chat form to send more chats to Omnisend.

Are chat ended or chat tagged events sent?

No. The integration sends new chats and submitted chat forms only.

Are chat messages sent to Omnisend?

No. Chat transcripts and messages are not sent to Omnisend.

Does the integration subscribe contacts to email or SMS?

No. The integration doesn't change a contact's email or SMS subscription status.

Do I need the webhook secret key?

No. You can close the secret key dialog after creating the webhook – it doesn't affect whether data reaches Omnisend.

What should I check if a chat or form doesn't appear in Omnisend?

Check that:

  1. The feature is enabled in Omnisend.

  2. The webhook in Text uses the correct trigger: incoming_chat for ChatBot.com - Chat started and incoming_event for ChatBot.com - Form submitted.

  3. The Webhook URL matches the URL copied from Omnisend for that feature.

  4. The visitor shared an email address or phone number.

  5. If the issue persists, uninstall and reinstall the app.


Didn't find the answer to your question? Reach out to our Support team through the in-app chat or at [email protected] – our team is available 24/7.

Did this answer your question?