Skip to content

Chat Agent Guide

Chat agents provide text-based conversational AI with full conversation threading, history, and transcript export. They’re ideal for customer support, documentation assistants, FAQ systems, and lead qualification.

  1. Get a text model — Check available models with GET /models?type=TEXT
  2. Create a chat agentPOST /chat-agents with your model ID and system prompt
  3. Send a messagePOST /chat/send with your agent ID and message
  4. Continue the conversation — Include conversationId in subsequent messages

Define your agent’s personality, knowledge, and behavior. The system prompt is sent with every conversation turn to maintain consistent agent behavior.

  • Temperature — Controls response creativity (0.0 = focused, 1.0 = creative)
  • Max Tokens — Limits response length for cost control
  • Provider — Choose between Gemini, OpenAI, or Grok text models
ProviderModelsBest For
OpenAIGPT-4o, GPT-4o MiniPremium quality, complex reasoning
GeminiGemini 1.5 Pro, Gemini 1.5 FlashCost-effective, general purpose
GrokGrok BetaReal-time information, web search
  • GET /chat/conversations — List all conversations for an agent
  • GET /chat/conversations/:id — Get full conversation with message history
  • POST /chat/conversations/:id/end — Mark a conversation as ended
  • DELETE /chat/conversations/:id — Delete a conversation entirely
  • GET /chat/conversations/:id/transcript — Export as plain text

Bizway tracks token usage per conversation for cost optimization. Monitor your usage patterns to:

  • Right-size your max_tokens setting
  • Choose the most cost-effective provider for each use case
  • Identify conversations that consume disproportionate resources
  • Customer Support — Handle common questions and route complex issues to humans
  • Documentation Assistants — Help users find answers in your knowledge base
  • Sales Qualification — Qualify leads through conversational questionnaires
  • Interactive Help — Guide users through onboarding or troubleshooting flows