AI Agent

Actions Overview

Understand how Actions extend your AI agent from passive Q&A into active task execution — collecting leads, looking up orders, booking appointments, and more.

Actions Overview

Most AI agents answer questions. With Actions, your Chatsby agent can do things — execute tasks, call external APIs, collect structured data from users, and trigger workflows in real time, all without leaving the conversation.

Actions transform your agent from a static knowledge base into a dynamic assistant that drives business outcomes. Instead of saying "please email [email protected] for order status," your agent can ask for the order number, call your backend, and return tracking information in seconds.

What Are Actions?

An Action is a defined task that your AI agent can perform when specific conditions are met during a conversation. Each action consists of three components:

  1. Trigger condition — A natural-language description that tells the agent when to activate the action.
  2. Parameters — The information the agent must collect from the user before execution.
  3. Execution — The operation performed once all parameters are gathered (API call, webhook, internal process).

When a user's message matches a trigger condition, the agent shifts from answering questions to collecting the required parameters through natural conversation. Once all parameters are gathered, the action executes and the agent delivers the result.

Real-World Examples Across Industries

Actions are designed to be flexible enough for any business workflow. Here are examples of how teams across different industries use them:

IndustryActionWhat Happens
E-commerceOrder status lookupUser provides order number and email. Agent calls your fulfillment API and returns real-time tracking, estimated delivery, and carrier details.
SaaSAccount managementUser asks to upgrade their plan. Agent collects account email, verifies identity, and triggers a plan change through your billing API.
HealthcareAppointment bookingPatient requests a visit. Agent collects preferred date, provider, and insurance info, then books through your scheduling system.
Real estateProperty searchBuyer describes preferences (bedrooms, budget, neighborhood). Agent queries your MLS integration and returns matching listings with photos and links.
Financial servicesLoan pre-qualificationProspect provides income and credit range. Agent runs a soft check through your underwriting API and returns preliminary eligibility.
EducationCourse enrollmentStudent selects a program. Agent collects personal details and payment info, then registers them through your enrollment system.
HospitalityReservation managementGuest provides confirmation number. Agent retrieves booking details, allows date changes, and sends updated confirmation.

Action Execution Flow

Every action follows the same predictable lifecycle. Understanding this flow helps you design actions that feel natural and deliver reliable results.

User sends a message
        │
        ▼
┌─────────────────────────┐
│  Agent evaluates message │
│  against trigger          │
│  conditions               │
└─────────┬───────────────┘
          │ Match found
          ▼
┌─────────────────────────┐
│  Agent begins parameter  │
│  collection via natural  │
│  conversation            │
└─────────┬───────────────┘
          │ All required params collected
          ▼
┌─────────────────────────┐
│  Chatsby sends webhook   │
│  POST request with       │
│  parameters + metadata   │
└─────────┬───────────────┘
          │ Response received
          ▼
┌─────────────────────────┐
│  Agent formats response  │
│  and delivers result to  │
│  the user                │
└─────────────────────────┘

Key points about the execution flow:

  • Parameter collection is conversational. The agent does not present a rigid form. It asks for each parameter naturally, one at a time or in logical groups, adapting to what the user has already provided.
  • Validation happens in real time. If a user provides an invalid email address or a number where text is expected, the agent prompts them to correct it before proceeding.
  • Execution is synchronous. Your webhook has up to 30 seconds to respond. If it times out, the agent delivers a configurable fallback message.

Built-in Actions

Chatsby provides three pre-built actions that cover the most common use cases. These require no webhook configuration and work out of the box on all plans.

Lead Capture

The most popular action. When a visitor expresses interest — asking for a demo, requesting pricing, or wanting to be contacted — the agent collects their information and stores it as a contact in your Chatsby dashboard.

Configuration OptionDescriptionDefault
Required fieldsChoose which fields are mandatory: name, email, phone, company, messageName, Email
Optional fieldsAdditional fields the agent will ask for but not requirePhone, Company
Success messageThe confirmation message shown after capture"Thanks! Our team will be in touch shortly."
Notification emailEmail address that receives an alert when a lead is capturedWorkspace owner email
Trigger phrasesCustomize when the action activates"contact us," "schedule a demo," "talk to sales"

Lead Capture automatically creates a contact record in your Contacts dashboard. You can export these to your CRM or trigger automations via Zapier. See Managing Contacts for details.

Human Escalation

Some conversations require a human touch. The Human Escalation action allows your agent to recognize when it cannot help and hand the conversation off to your team.

Configuration OptionDescriptionDefault
Escalation triggersConditions that prompt escalation (frustration detected, explicit request, topic not covered)Explicit request only
Notification methodHow your team is alerted: email, Slack webhook, or bothEmail
Notification recipientsTeam members or email addresses that receive escalation alertsWorkspace owner
Offline messageMessage shown when no team members are available"Our team is currently offline. We'll follow up within 24 hours."
Collect info firstWhether to gather the user's name and email before escalatingYes

Feedback Collection

Gather structured feedback about the conversation experience. This action activates at the end of conversations or when explicitly triggered.

Configuration OptionDescriptionDefault
Rating scaleNumeric scale (1-5 stars) or thumbs up/down1-5 stars
Follow-up questionOptional open-ended question after the rating"What could we improve?"
Trigger timingWhen to ask: end of conversation, after X messages, or manual trigger onlyEnd of conversation
Minimum messagesOnly trigger feedback if the conversation had at least N messages3

Custom Actions

When built-in actions are not enough, custom actions let you connect your agent to any external system with an HTTP API. Custom actions are the way to build truly differentiated agent experiences.

With custom actions, you can:

  • Query databases — Look up orders, accounts, inventory, or any record in your system.
  • Trigger workflows — Start processes in your CRM, ticketing system, or marketing automation platform.
  • Perform calculations — Send data to your backend for processing and return computed results.
  • Create records — Book appointments, submit applications, create support tickets.
  • Integrate with third-party APIs — Connect to Stripe, Twilio, Calendly, or any service with a REST API.

Prerequisites for custom actions:

  1. An HTTP endpoint (webhook URL) that can receive POST requests and return JSON responses.
  2. A Chatsby account on a paid plan (Pro, Business, or Enterprise).
  3. A clear understanding of what data your endpoint needs and what it returns.

For a complete step-by-step guide to building custom actions, including webhook code examples and testing instructions, see Creating Actions.

Plan Availability

FeatureFreeProBusinessEnterprise
Lead Capture (built-in)YesYesYesYes
Human Escalation (built-in)YesYesYesYes
Feedback Collection (built-in)YesYesYesYes
Custom actions--Up to 5Up to 25Unlimited
Webhook timeout--15 seconds30 seconds60 seconds
Action analytics--BasicAdvancedAdvanced + export

When to Use Actions (and When Not To)

Actions are powerful, but they are not always the right solution. Here is a quick guide:

Use actions when:

  • The user needs a specific result from an external system (order status, account balance, booking confirmation).
  • You need to collect structured data in a conversational format (lead forms, surveys, intake questionnaires).
  • A conversation should trigger a process in another system (CRM update, ticket creation, notification).

Keep it simple when:

  • The information is already in your agent's training data. If the answer exists in your sources, the agent can answer directly without an action.
  • The workflow is too complex for a single webhook call. If the process requires multiple sequential steps with branching logic, consider building that logic in your backend and exposing a single endpoint.
  • The user experience does not benefit from real-time execution. If results take minutes or hours, it may be better to collect contact info and follow up.

Security Considerations

Actions involve passing user data to external systems, so security is a core concern.

  • Data in transit. All webhook calls from Chatsby are made over HTTPS. HTTP endpoints are not supported.
  • Authentication. Custom actions support Bearer token authentication and custom headers, so you can verify that incoming requests originate from Chatsby.
  • Parameter scoping. Actions only have access to the parameters explicitly defined in the action configuration and conversation metadata (conversation ID, agent ID). They cannot access your full contact database or other agents' data.
  • No credential storage. Chatsby does not store API keys or tokens in logs. Authentication headers are encrypted at rest and only decrypted at execution time.
  • Webhook validation. You can verify incoming requests by checking the X-Chatsby-Signature header, which contains an HMAC-SHA256 signature of the payload using your webhook secret.

For more on how Chatsby handles data security, see the Security FAQ.

Next Steps

  • Creating Actions — Build your first custom action with a step-by-step guide, including full webhook code examples.
  • Managing Contacts — Learn how to work with leads captured by the Lead Capture action.
  • Playground — Test your actions in a safe sandbox before deploying to production.