Skip to main content
The Chatbase Zapier app connects your AI agent to thousands of other apps with no code. Its Form Submission trigger sends each lead your Collect Leads Action captures into a Zap, and its Send Prompt action lets a Zap ask your AI agent a question and use the answer. It needs a Chatbase API key, so it’s available on the Basic plan or higher. This guide walks through one complete example: collecting leads with your AI agent and appending them to a Google Docs file.

What you can do:

Push leads straight into your CRM, spreadsheet, or inbox the moment your AI agent captures them, or have your AI agent draft answers inside any Zap.

Before you start

  • A Chatbase account with an AI agent, on the Basic plan or higher, which the Chatbase API endpoints the Zapier app uses need. If you haven’t built an AI agent yet, follow Your first AI agent.
  • An active Zapier account.
  • Your Chatbase API key and Agent ID (see the steps below for where to find each).

Chatbase triggers and actions in Zapier

The Chatbase app in Zapier has one trigger and one action. There are no search steps, and there’s no trigger for new conversations.

Form Submission trigger

The trigger is instant: when you turn on the Zap, Zapier registers a webhook with Chatbase, so leads arrive as soon as they’re submitted rather than on a polling schedule. It fires only for the Collect Leads Action. Submissions from Collect Data Actions and custom forms don’t trigger it. To send those elsewhere, use webhooks. Each lead includes these fields: For example, a lead might arrive as customerName: Jane Doe, customerEmail: jane@example.com, customerPhone: +15550000000.

Send Prompt action

Send Prompt sends a message to your AI agent and returns its reply, so later Zap steps can use it. Its fields are: The action returns Chatbot ID and Response text. Each Send Prompt call uses message credits at the cost of the model that answers it, the same as a reply on any other channel. Choosing a different Model changes the cost. The Form Submission trigger doesn’t use credits on its own.

What you can automate

These automations use the Send Prompt action, with a trigger from another app:

How to connect Zapier

1

Set up lead collection in Chatbase

  1. Sign in to your Chatbase account to access your dashboard.
  2. Click the AI agent you want to set up lead collection for.
  3. From the sidebar, click Build > Actions, then select Create Action and set up your Collect Leads Action.
2

Create a Zap and add the trigger

  1. Sign in to your Zapier account.
  2. Click Create, then Zaps, in the top-left corner of the Zapier homepage.
Creating a new Zap in Zapier
  1. In the Zap editor, click Trigger.
Selecting the trigger in the Zap editor
  1. Search for Chatbase in the search bar and click it.
Searching for Chatbase in the Zapier app list
  1. On the right side of the page, click the Event field and select Form Submission, then click Continue.
Selecting the Form Submission event
3

Authenticate your Chatbase account

Click Sign in on the next page. On the authentication page, provide your Chatbase API key and, optionally, a display name, then click Yes, Continue to Chatbase.
Signing in to link your Chatbase account
To get your API key, head to your account dashboard, go to Workspace settings, then select API keys in the sidebar. Copy an existing key, or click Create API Key to create a new one.
The Chatbase authentication page in Zapier
4

Provide your Agent ID and test the trigger

  1. Click Continue after authenticating.
  2. Paste your Agent ID in the provided input field and click Continue.
To find your Agent ID, open the AI agent you want to link with Zapier, go to Settings → General, and copy the Agent ID from the Agent details card.
  1. Click Test Trigger.
Testing the Chatbase trigger in Zapier
  1. When prompted, click Continue with selected records.
5

Set up the action

  1. A window appears with a list of apps. Search for Google Docs and click it.
Searching for Google Docs in Zapier
  1. Click the Event field, select Append Text to Document, then click Continue.
Selecting the Append Text to Document event
  1. Sign into your Google account and click Continue.
  2. Select the document you wish to append to, in the Document Name field.
  3. In the Text to Append field, select the lead form field you want to add, then click Continue.
Mapping lead fields to the Google Docs action
6

Test and publish

Click to test the setup, then click Publish to go live.
Trigger a lead capture on your site and confirm the lead is appended to your target Google Docs file.

Frequently asked questions

The Basic plan or higher, because the Zapier app signs in with a Chatbase API key and uses Chatbase API endpoints.
No. The only Chatbase trigger is Form Submission, which fires when the Collect Leads Action captures a lead. Each lead includes the conversationId it came from.
No. It fires only for the Collect Leads Action. Send Collect Data and custom form submissions to a webhook instead.
Instant. Zapier registers a webhook with Chatbase when you turn the Zap on, so each lead is sent as soon as it’s submitted.
Yes. Each Send Prompt call uses message credits for the model that answers it, like any other reply. The trigger itself doesn’t.
Go to Workspace settings > API keys in your Chatbase dashboard. Seeing this page requires the API keys permission.

Next steps

Collect Leads Action

Configure which details your AI agent captures, and when.

viaSocket

An alternative no-code automation platform, connected through webhooks.