Skip to main content
viaSocket is a no-code workflow automation platform. You connect a Chatbase AI agent to it with Chatbase webhooks: Chatbase sends an event, such as a new lead, to a viaSocket webhook URL, and your viaSocket flow passes it on to other apps. Webhooks need a paid plan. This guide walks through one complete example: receiving leads from your AI agent and automatically adding them to a Google Docs document.

What you can do:

Send what your AI agent captures into any app viaSocket supports, triggered by a Chatbase webhook the moment it happens.

Before you start

  • A Chatbase account with an AI agent, on a paid plan, which webhooks need. If you haven’t built an AI agent yet, follow Your first AI agent.
  • A viaSocket account.
  • For the lead example, a Collect Leads Action on your AI agent.

Which Chatbase events you can send

Where you add the viaSocket webhook URL depends on the event: See Webhooks for each event’s payload.

What you can automate

How to connect viaSocket

1

Set up a trigger in viaSocket

  1. Sign in to your viaSocket account.
  2. Click Create New Flow in the top-left corner of the viaSocket homepage.
Creating a new flow in viaSocket
  1. In the Flow editor, click Select Trigger.
Selecting a trigger in the viaSocket flow editor
  1. Select Webhook as the trigger, then copy the generated Webhook URL.
Copying the generated webhook URL in viaSocket
2

Configure the trigger in Chatbase

For leads, add the webhook to your Collect Leads Action:
  1. Navigate to your Chatbase dashboard.
  2. Click the AI agent you wish to integrate with viaSocket.
  3. Go to Build > Actions and open your Collect Leads Action.
  4. Open the Destinations section, paste the copied Webhook URL, click Create webhook, then save your changes. See Destinations.
For custom form, phone call summary, or Helpdesk events, use Settings > Webhooks instead: select the events you want to trigger, paste the copied Webhook URL into the Endpoint field, then click Create Webhook. The Webhooks tab notes: “Webhooks for collected leads and collected data are managed in their Action editors, under Destinations.”
Creating a webhook in Chatbase settings
3

Set up an action to automate tasks

  1. Go back to the viaSocket Flow Builder and click Select Action.
Selecting an action in the viaSocket flow builder
  1. Choose the Google Docs action: Append Text to Document.
Choosing the Append Text to Document action
  1. Establish a connection and configure your action with the required details.
Configuring the Google Docs action in viaSocket
4

Test and publish the flow

Testing and publishing the viaSocket flow
Trigger a lead capture on your site and confirm it’s added to your designated Google Docs file.

Frequently asked questions

Any paid plan, because the connection uses Chatbase webhooks, which need one.
Lead and Collect Data webhooks are managed in each Action’s editor, under Destinations. Settings > Webhooks covers custom forms, phone call summaries, and Helpdesk events.
Each lead arrives as a POST request with eventType (leads.submit), chatbotId (your Agent ID), and a payload with the customer’s name, email, phone, the conversation ID, and any custom fields on your Collect Leads Action. See Webhooks.
Either works for leads. Zapier has a Chatbase app with a Form Submission trigger and a Send Prompt action. With viaSocket, you connect through webhooks, which also cover Collect Data, custom form, phone call summary, and Helpdesk events. See Zapier.

Next steps

Webhooks

See every event Chatbase can send, and what each payload contains.

Zapier

An alternative no-code automation platform, with a native Chatbase app.