Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.kapso.ai/llms.txt

Use this file to discover all available pages before exploring further.

Quick code example

Install the CLI and workflow library:
npm install -g @kapso/cli
npm install --save-dev @kapso/workflows
kapso login
kapso link --project <project-id>
kapso pull
Use @kapso/workflows to define a workflow in code:
import { START, Workflow } from "@kapso/workflows";

const workflow = new Workflow("inbound-support", {
  name: "Inbound Support"
});

workflow.addTrigger({
  type: "inbound_message",
  phoneNumberId: "<phone-number-id>"
});

workflow.addNode(START);

workflow.addNode("reply", {
  type: "send_text",
  message: "Thanks for contacting us. How can we help?"
});

workflow.addEdge(START, "reply");

export default workflow;
Build and push it with the CLI:
kapso build
kapso push workflow inbound-support

Explore

Build a workflow

Visual builder with nodes for messages, decisions, and integrations.

Answer voice calls

Connect Pipecat agents to handle WhatsApp voice calls.

Deploy a function

Serverless JavaScript on Cloudflare Workers or Supabase.

API reference

Complete API documentation for workflows and functions.