Creating Agents
Step-by-step guide to creating and configuring AI agents
Learn how to create and configure AI agents in ArcanFlows step by step.
Creating a New Agent
Step 1: Navigate to Agents
- Log in to your ArcanFlows dashboard
- Click Agents in the left sidebar
- Click the Create Agent button in the top right
Step 2: Basic Information
Fill in the basic details:
| Field | Description | Example |
|---|---|---|
| Name | A descriptive name for your agent | "Customer Support Bot" |
| Slug | URL-friendly identifier (auto-generated) | "customer-support-bot" |
| Description | What the agent does | "Handles customer inquiries and support tickets" |
Step 3: Choose a Template (Optional)
You can start from:
- Blank: Start from scratch
- Customer Support: Pre-configured for support scenarios
- Sales Assistant: Optimized for sales conversations
- Knowledge Base Q&A: Answers questions from documents
Configuring Your Agent
Model Settings
Choose your AI model and provider:
┌─────────────────────────────────────────────┐
│ Model Configuration │
├─────────────────────────────────────────────┤
│ Provider: [OpenAI ▼] │
│ Model: [GPT-4 Turbo ▼] │
│ Temperature: [0.7 ] ────○──── │
│ Max Tokens: [2048 ] │
└─────────────────────────────────────────────┘
Provider Options
| Provider | Models | Best For |
|---|---|---|
| OpenAI | GPT-4, GPT-4 Turbo, GPT-3.5 | General purpose, function calling |
| Anthropic | Claude 3 Opus, Sonnet, Haiku | Long context, safety |
| Gemini Pro, Ultra | Multimodal, fast | |
| Ollama | Llama, Mistral, custom | Local, privacy |
Parameter Guide
| Parameter | Range | Description |
|---|---|---|
| Temperature | 0.0 - 1.0 | Higher = more creative, lower = more focused |
| Max Tokens | 1 - 4096+ | Maximum response length |
| Top P | 0.0 - 1.0 | Controls response diversity |
System Prompt
The system prompt defines your agent's personality, knowledge, and behavior:
markdownYou are a helpful customer support assistant for TechCorp. Your responsibilities: - Answer questions about our products and services - Help troubleshoot common issues - Guide users through our documentation - Escalate complex issues to human support Guidelines: - Be friendly, professional, and concise - Always verify user identity before sharing account details - If unsure, say so and offer to connect with a human agent - Never share internal processes or confidential information Available actions: - Look up order status - Check account information - Create support tickets - Schedule callbacks
Welcome Message
Set the first message users see:
Hi! I'm the TechCorp support assistant. How can I help you today?
I can help you with:
• Product questions
• Order status
• Technical support
• Account issues
What would you like to know?
Adding Knowledge
Upload Documents
Give your agent access to information:
- Go to the Knowledge Base tab
- Click Upload Documents
- Select files (PDF, TXT, MD, DOCX)
- Wait for processing to complete
Configure Retrieval
Optimize how your agent finds information:
| Setting | Default | Description |
|---|---|---|
| Chunk Size | 500 | Characters per chunk |
| Chunk Overlap | 50 | Overlap between chunks |
| Top K | 5 | Number of chunks to retrieve |
Adding Tools
Enable your agent to take actions:
Built-in Tools
| Tool | Description |
|---|---|
| HTTP Request | Call external APIs |
| Database Query | Query your databases |
| Send Email | Send emails via configured providers |
| Create Ticket | Create support tickets |
Custom Tools
Define custom functions:
json{ "name": "get_order_status", "description": "Look up the status of a customer order", "parameters": { "type": "object", "properties": { "order_id": { "type": "string", "description": "The order ID to look up" } }, "required": ["order_id"] } }
Testing Your Agent
Test Chat
Use the built-in test interface:
- Click the Test button
- Send messages to your agent
- Review responses
- Iterate on your configuration
Test Scenarios
Try these scenarios:
✓ Basic greeting
✓ Product question
✓ Edge case handling
✓ Unknown question response
✓ Tool usage
✓ Knowledge base retrieval
Publishing
When you're satisfied with testing:
- Click Publish in the top right
- Confirm the publication
- Your agent is now live!
Publication Checklist
Before publishing, verify:
- System prompt is complete
- Welcome message is set
- Knowledge base is uploaded
- Tools are configured
- Testing is complete
- Error handling is in place
Agent Settings
Access Control
Configure who can use your agent:
| Setting | Description |
|---|---|
| Public | Anyone with the link |
| Authenticated | Logged-in users only |
| Private | API access only |
Rate Limiting
Protect your agent from abuse:
Messages per minute: 10
Messages per hour: 100
Messages per day: 1000
Conversation Settings
| Setting | Default | Description |
|---|---|---|
| Max History | 20 | Messages to keep in context |
| Session Timeout | 30min | Auto-end inactive sessions |
| Save Conversations | Yes | Store for analytics |
Next Steps
- System Prompts - Write effective prompts
- Model Selection - Choose the right model
- Knowledge Base - Add documents
- Tools - Enable agent actions