Skip to content

Agent Templates

Templates provide pre-configured agent setups for common use cases.

Available Templates

TemplateDescriptionTools
customer-supportCustomer service chatbotllm/chat, retrieval/search
research-assistantResearch and analysisllm/chat, retrieval/search, retrieval/rerank
voice-agentVoice-based assistantvoice/*, llm/chat
document-processorDocument analysisdocument/*, llm/chat
rag-agentRetrieval-augmented generationllm/, retrieval/

Using Templates

Create Agent from Template

bash
curl -X POST https://api.gateflow.ai/v1/mcp/agents \
  -H "Authorization: Bearer gw_prod_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Support Bot",
    "template": "customer-support"
  }'

Customize Template

Override specific settings:

bash
curl -X POST https://api.gateflow.ai/v1/mcp/agents \
  -H "Authorization: Bearer gw_prod_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Premium Support",
    "template": "customer-support",
    "permissions": {
      "models": ["gpt-4o"]
    },
    "config": {
      "system_prompt": "You are a premium support agent for VIP customers."
    }
  }'

Template Details

customer-support

yaml
template: customer-support
permissions:
  tools:
    - llm/chat
    - retrieval/search
  models:
    - gpt-4o-mini
  data_classification:
    - public
  rate_limits:
    requests_per_minute: 60
    cost_per_session: 1.00
config:
  system_prompt: |
    You are a helpful customer support agent.
    Be friendly, professional, and concise.
    If you don't know the answer, say so.

research-assistant

yaml
template: research-assistant
permissions:
  tools:
    - llm/chat
    - llm/embed
    - retrieval/search
    - retrieval/rerank
  models:
    - gpt-4o
  data_classification:
    - public
    - internal
  rate_limits:
    requests_per_minute: 30
    cost_per_session: 5.00
config:
  system_prompt: |
    You are a research assistant. Help users find and
    analyze information. Cite sources when possible.

voice-agent

yaml
template: voice-agent
permissions:
  tools:
    - voice/transcribe
    - voice/synthesize
    - voice/pipeline
    - llm/chat
  models:
    - whisper-1
    - gpt-4o-mini
    - tts-1
  rate_limits:
    audio_minutes_per_day: 30
    cost_per_session: 2.00
config:
  voice: friendly
  pipeline: voice-agent-fast

Creating Custom Templates

Define your own templates:

bash
curl -X POST https://api.gateflow.ai/v1/mcp/templates \
  -H "Authorization: Bearer gw_prod_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "legal-assistant",
    "description": "Legal document analysis agent",
    "permissions": {
      "tools": ["llm/chat", "document/ocr", "retrieval/search"],
      "models": ["gpt-4o"],
      "data_classification": ["confidential"]
    },
    "config": {
      "system_prompt": "You are a legal assistant...",
      "ocr_provider": "mistral"
    },
    "rate_limits": {
      "cost_per_session": 10.00
    }
  }'

Next Steps

Built with reliability in mind.