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

  1. Log in to your ArcanFlows dashboard
  2. Click Agents in the left sidebar
  3. Click the Create Agent button in the top right

Step 2: Basic Information

Fill in the basic details:

FieldDescriptionExample
NameA descriptive name for your agent"Customer Support Bot"
SlugURL-friendly identifier (auto-generated)"customer-support-bot"
DescriptionWhat 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

ProviderModelsBest For
OpenAIGPT-4, GPT-4 Turbo, GPT-3.5General purpose, function calling
AnthropicClaude 3 Opus, Sonnet, HaikuLong context, safety
GoogleGemini Pro, UltraMultimodal, fast
OllamaLlama, Mistral, customLocal, privacy

Parameter Guide

ParameterRangeDescription
Temperature0.0 - 1.0Higher = more creative, lower = more focused
Max Tokens1 - 4096+Maximum response length
Top P0.0 - 1.0Controls response diversity

System Prompt

The system prompt defines your agent's personality, knowledge, and behavior:

markdown
You 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:

  1. Go to the Knowledge Base tab
  2. Click Upload Documents
  3. Select files (PDF, TXT, MD, DOCX)
  4. Wait for processing to complete

Configure Retrieval

Optimize how your agent finds information:

SettingDefaultDescription
Chunk Size500Characters per chunk
Chunk Overlap50Overlap between chunks
Top K5Number of chunks to retrieve

Adding Tools

Enable your agent to take actions:

Built-in Tools

ToolDescription
HTTP RequestCall external APIs
Database QueryQuery your databases
Send EmailSend emails via configured providers
Create TicketCreate 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:

  1. Click the Test button
  2. Send messages to your agent
  3. Review responses
  4. 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:

  1. Click Publish in the top right
  2. Confirm the publication
  3. 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:

SettingDescription
PublicAnyone with the link
AuthenticatedLogged-in users only
PrivateAPI access only

Rate Limiting

Protect your agent from abuse:

Messages per minute: 10
Messages per hour: 100
Messages per day: 1000

Conversation Settings

SettingDefaultDescription
Max History20Messages to keep in context
Session Timeout30minAuto-end inactive sessions
Save ConversationsYesStore for analytics

Next Steps