BotsOverview

Bots

Aerostack Bots are a full agent builder, not just a chatbot. Every bot connects to one MCP workspace and gets instant access to all its tools — databases, payment APIs, ticketing systems, knowledge bases, and anything else you wire up. Two execution modes let you choose exactly how messages are handled: let the LLM figure it out autonomously, or design a deterministic workflow graph that runs exactly the steps you define.

A bot is the interface layer. A workspace is the capability layer. Separate the two and you can swap platforms, models, or tools independently without rebuilding anything.


Architecture

Messages arrive from any supported platform, get normalized into a unified format, then enter one of two execution modes. Both modes have full access to every tool in the bot’s workspace.


Two Execution Modes

Agent Loop Mode

The LLM autonomously decides which tools to call, in what order, and when to stop. Best for open-ended conversation, Q&A, and exploratory tasks where you cannot predict every path in advance.

  • Up to 10 tool-calling loops per message (configurable)
  • LLM sees all available tools from the workspace and picks the right ones
  • Simple messages that need no tools are answered immediately (no tool overhead)
  • Works with any LLM provider that supports tool calling

Workflow Mode

You design a directed graph of nodes and edges. The engine executes them in order, following your branching logic. Best for deterministic processes where every step must happen in a defined sequence.

  • Up to 50 nodes per execution with cycle detection
  • 14 node types: trigger, llm_call, logic, mcp_tool, send_message, action, loop, code_block, auth_gate, schedule_message, send_proactive, delegate_to_bot, error_handler, parallel
  • Variable interpolation across all nodes
  • LLM calls available at specific points (structured flow with AI reasoning at key steps)
Agent LoopWorkflow
ControlLLM decides everythingYou design the flow
Best forOpen-ended chat, Q&A, explorationMulti-step processes, triage, approvals
Tool selectionAutomatic (LLM picks)Explicit (you place mcp_tool nodes)
BranchingLLM reasons about what to do nextDeterministic if/else, switch, loops
Max steps10 tool-call rounds50 nodes
Identity verificationNot availableauth_gate node
Human approvalNot availablehuman_handoff action
Bot-to-bot delegationNot availabledelegate_to_bot node

Supported Platforms

PlatformWebhook VerificationAuto-RegistrationMessage Types
TelegramHMAC secret tokenYes (setWebhook API)Text, callback queries, group chats
DiscordEd25519 signatureYes (interactions endpoint + slash commands)/ask and /reset slash commands
WhatsAppHMAC-SHA256Partial (manual webhook in Meta Portal)Text, images, documents, audio, video, location
SlackHMAC-SHA256 + replay protectionNo (manual Event Subscriptions)DMs, app mentions, channel messages
CustomNone built-inN/AJSON { text, userId, channelId }

LLM Provider Support

ProviderModelsTool Calling
AnthropicClaude Opus 4, Claude Sonnet 4, Claude HaikuNative
OpenAIGPT-4o, GPT-4o Mini, o1Native
GoogleGemini 2.5 Pro, Gemini 2.5 FlashNative
GroqLlama 3.3 70B, Mixtral 8x7BVia OpenAI-compatible API
Cloudflare Workers AICloudflare-hosted modelsNot supported
CustomAny OpenAI-compatible endpointDepends on provider

You can use Aerostack’s pooled API keys (billed via wallet) or bring your own key (BYOK mode, no platform charges).


Key Capabilities

Workspace Integration

Every bot connects to one MCP workspace. The workspace aggregates tools from multiple MCP servers, Skills, and Functions. Add a Stripe MCP to your workspace and the bot can immediately process payments. Add a database MCP and it can query your data. No code changes needed — the workspace is the single source of capabilities.

Auth Gate (Identity Verification)

The auth_gate workflow node runs a multi-turn identity verification flow directly inside the conversation. The bot prompts the user for their email or phone, sends a one-time code, and verifies it before proceeding. Four built-in providers (Resend, SES, Twilio, MSG91) plus custom HTTP. State machine: awaiting_contact to awaiting_otp to verified or failed.

Human Handoffs

A workflow can pause execution and notify a human reviewer via email, web dashboard, Telegram, or Discord. The reviewer sees the full conversation context, the reason for escalation, and approve/reject buttons. On approval, the workflow resumes down the approved path. On rejection, it follows the rejected path. See Human Handoffs for the full guide.

Bot-to-Bot Delegation

The delegate_to_bot node lets one bot call another bot. Each bot can live in its own workspace with its own tools. A reception bot can route to specialist bots (billing-bot, tech-bot, hr-bot) based on intent classification. Maximum 3 delegation hops.

Proactive and Scheduled Messages

Workflows can send messages to different channels or users (send_proactive) and schedule messages for future delivery (schedule_message). Use cases: appointment reminders, follow-up messages, shift notifications, daily digests.


Use Cases

Customer Support (Telegram)

A Telegram bot with a workflow that verifies the customer’s identity via auth_gate, looks up their order history via a database MCP, checks payment status via Stripe MCP, processes refunds for amounts under $500 automatically, and escalates higher amounts to a finance manager via human_handoff. The finance manager approves from their phone and the bot processes the refund.

Community Manager (Discord)

A Discord bot in agent loop mode connected to a workspace with a knowledge base MCP and a moderation MCP. Users ask questions with /ask and the bot searches the FAQ, answers from the knowledge base, and logs unanswered questions for the team to review. Onboards new members with a welcome workflow that collects their role and interests.

Sales Assistant (WhatsApp)

A WhatsApp bot that qualifies leads through a workflow: asks about company size, use case, and timeline. Scores the lead using a code_block node, then either schedules a demo via a calendar MCP or sends product materials. High-value leads trigger a human_handoff to the sales team with full context.

Internal Ops (Slack)

A Slack bot in a company workspace connected to MCPs for metrics dashboards, deployment systems, and incident management. Team members ask “What were yesterday’s error rates?” and the bot queries the observability MCP. Deployment requests go through a human_handoff to the on-call engineer.

HR Helpdesk (Slack)

A Slack bot using a workflow to handle PTO requests: verifies employee identity, checks remaining balance via an HR system MCP, submits the request, and routes approval to the employee’s manager via human_handoff. Also answers benefits questions using a knowledge base MCP in agent loop mode.

E-commerce Assistant (Telegram)

A Telegram bot for order tracking, returns, and product recommendations. Workflow mode for returns (verify identity, look up order, check return eligibility, process return or escalate). Agent loop mode for general product questions using a catalog MCP.

Appointment Scheduler (WhatsApp)

A WhatsApp bot that checks availability via a calendar MCP, books appointments, sends confirmation messages, and uses schedule_message to send reminders 24 hours and 1 hour before the appointment. Cancellation requests go through a simple workflow that frees the slot and confirms.

DevOps Incident Bot (Workflow)

A multi-bot setup: a monitoring bot receives alerts, parses severity using an llm_call node, and delegates to an oncall-bot via delegate_to_bot. The oncall-bot creates a PagerDuty incident via MCP, notifies the channel via send_proactive, and escalates P1 incidents to the engineering manager via human_handoff.


Aerostack vs Other Bot Builders

FeatureAerostackBotpressVoiceflow
Execution modesAgent loop + workflow graphFlow-based + “autonomous” nodesCanvas flow-based
Tool accessFull MCP workspace (any MCP, Skill, or Function)Built-in integrations + custom API callsAPI steps + integrations
LLM providers6 providers, BYOK supportedOpenAI only (default)OpenAI, Anthropic
Identity verificationBuilt-in auth_gate (OTP, magic link, 4 providers)Custom flow requiredCustom flow required
Human handoffsNative workflow node with multi-channel notificationHandoff to live agent (Zendesk, etc.)Not built-in
Bot delegationdelegate_to_bot with 3-hop routingNot availableNot available
PlatformsTelegram, Discord, WhatsApp, Slack, CustomWeb, WhatsApp, Telegram, MessengerWeb, WhatsApp, Telegram, custom
HostingCloudflare edge (global, no cold starts)Botpress CloudVoiceflow Cloud
PricingPay-per-use wallet or BYOKPer-message + plan tiersPer-interaction + plan tiers
Open protocolMCP (open standard)Proprietary integrationsProprietary integrations

The key difference: Aerostack bots inherit capabilities from the MCP ecosystem. Any MCP server anyone publishes — open source or on the Aerostack marketplace — immediately becomes a capability your bot can use. No custom integration code.


Billing Modes

ModeHow It Works
WalletPrepaid balance, auto-deduct per conversation
BYOKBring your own LLM API key. No platform charge.
Plan QuotaComing soon. Included usage within your account plan.

See Billing & Limits for pricing details, spending caps, and rate limits. See Cost Optimization for strategies to reduce costs.


Next Steps