BotForge

Tutorials · Intermediate

Build an AI support agent

Ground an AI agent in your knowledge base and let it answer customers with human escalation.

  1. 1

    Add knowledge sources

    In AI Studio, add your knowledge sources — FAQs, docs, policies. Each is chunked, embedded and indexed for retrieval by searchKnowledge().

  2. 2

    Create an Agent

    Create an Agent, attach the knowledge source(s), write its instructions/personality, and set an escalation path for when it should hand off to a human.

  3. 3

    Test in the Playground

    The Playground runs the exact same runAgentTurn() orchestrator live channels use, in mode: "simulate" — side-effecting tools (like create_ticket) report what they would do instead of writing a row.

  4. 4

    Publish and deploy

    Publish the Agent version, then assign it to a bot. Live conversations now run in mode: "execute" — the same orchestrator, but tools take real actions.