Prefabs
Prefabs are ready-to-use agent classes that implement common conversational patterns.
Each prefab extends AgentBase, so you can
customize them with additional prompt sections, tools, skills, and languages. Use them
directly for rapid prototyping or subclass them for production use.
Each prefab also has a corresponding factory function (e.g., createConciergeAgent())
that creates and returns a configured instance.
All prefabs can be extended by subclassing. Add custom tools with defineTool(), extra
prompt sections with promptAddSection(), and skills with addSkill().
Multi-department routing with knowledge base, hours of operation, and call transfer.
Answer questions using keyword matching with optional escalation.
Collect named fields from a caller with validation and completion callbacks.
Front-desk check-in, directory lookup, and call transfers.
Conduct surveys with branching, scoring, and multiple question types.
Extending Prefabs
All prefabs inherit from AgentBase,
so you can add custom tools, prompt sections, and skills: