Skip to main content
The AI Training API allows you to programmatically manage training scenarios, directories, and knowledge search for your AI assistant. Training scenarios teach the AI how to respond to specific situations unique to your business.

Training Types

  • Behavioral — Always-active instructions that control tone, style, guardrails, and escalation rules. Included in every conversation.
  • Scenario-specific — Triggered by semantic matching when a customer’s question is similar. Indexed as vector embeddings for retrieval.

Key Concepts

  • Scenarios — Question-answer pairs with a title (trigger) and body (instruction). Can be restricted to specific channels or contact segments.
  • Directories — Folders for organizing scenarios by topic.
  • Draft/Published — Draft scenarios are saved but not used by the AI. Publishing makes them active.

Available Endpoints

Best Practices

  • Use search before creating to avoid duplicates
  • Start with draft scenarios, review, then publish
  • Use behavioral type for tone and guardrails, scenario-specific for Q&A
  • Organize related scenarios into directories
  • Restrict to channels/segments when a scenario only applies to specific contexts
  • Use generate_training_from_session to learn from real conversations