Zaptickdocs
Resource

Chatbots

Decision-tree bots with optional LLM fallback for intent-matching and freeform reply.

#About

Chatbots are attached to keywords or lifecycle events. Every node in the graph is typed — message, list, media, handoff, webhook, branch — and bots can hand off to a human agent via the handoff node, which routes the conversation into the inbox resource.

#Endpoints

  • GET/chatbotsList chatbots (decision-tree + LLM-backed).
  • POST/chatbotsCreate a chatbot from a serialized node graph.
  • GET/chatbots/limitCheck the remaining chatbot-message quota for your plan.
GET/chatbots

List chatbots (decision-tree + LLM-backed).

SDK
TypeScript
const { chatbots } = await zaptick.chatbots.list();
POST/chatbots

Create a chatbot from a serialized node graph.

SDK
TypeScript
await zaptick.chatbots.create({
  name: 'Support triage',
  trigger: { keywords: ['help', 'support'] },
  nodes: [
    { id: 'start', type: 'message', text: 'Hi! What do you need help with?' },
    { id: 'menu',  type: 'list', options: [
      { id: 'orders', label: 'Orders', next: 'orders' },
      { id: 'agent',  label: 'Talk to an agent', next: 'handoff' },
    ] },
  ],
});
GET/chatbots/limit

Check the remaining chatbot-message quota for your plan.

SDK
TypeScript
const { remaining, cap } = await zaptick.chatbots.getLimit();
Response
JSON
{ "remaining": 12840, "cap": 15000, "resetsAt": "2026-05-01T00:00:00.000Z" }