What Are Custom AI Agents?
An AI agent is more than a chatbot. While a chatbot responds to individual prompts, an agent operates autonomously — it has goals, tools, context, and the ability to make decisions about how to accomplish tasks. Think of the difference between asking someone a question (chatbot) and delegating a project to a competent team member (agent). The team member understands the objectives, has access to the tools they need, makes judgment calls along the way, and delivers complete results.
Alfred's agent framework lets you create specialized AI workers that understand your business, your tools, and your standards. Once configured, these agents can run independently — processing tasks, generating outputs, and even triggering follow-up actions based on results.
Anatomy of an Alfred Agent
Every Alfred agent consists of five core components:
1. Identity and Role
The agent's identity defines its personality, expertise, and behavioral guidelines. This isn't just a name — it's a comprehensive profile that shapes how the agent approaches every task.
{
"name": "ContentPro",
"role": "Senior Content Strategist",
"expertise": ["SEO", "content marketing", "brand voice"],
"personality": "professional, data-driven, concise",
"language": "en-US",
"tone_guidelines": "Write in active voice. Prioritize clarity over creativity. Always include data when available."
}
2. Tool Access
Each agent has a specific set of tools it can access from Alfred's 875+ tool library. Restricting tool access improves performance (the agent doesn't waste tokens deciding between irrelevant tools) and security (the agent can't accidentally perform actions outside its scope).
{
"allowed_tools": [
"keyword-research",
"content-writer",
"seo-optimizer",
"meta-tag-generator",
"readability-analyzer",
"image-generator"
],
"restricted_tools": ["code-*", "legal-*", "devops-*"]
}
3. Context and Knowledge
Context is what makes your agent uniquely valuable. You provide:
- Business documents: Brand guidelines, style guides, product catalogs, company information
- Reference materials: Examples of ideal outputs, competitor analyses, industry standards
- Historical data: Previous campaigns, content performance metrics, audience insights
- Rules and constraints: Compliance requirements, forbidden topics, approval workflows
4. Task Handling Logic
Define how the agent processes different types of requests:
{
"task_routing": {
"blog_post": {
"steps": ["keyword_research", "outline", "draft", "seo_optimize", "review"],
"approval_required": true,
"max_tokens": 10000
},
"social_post": {
"steps": ["draft", "hashtag_research", "format_per_platform"],
"approval_required": false,
"max_tokens": 2000
},
"content_audit": {
"steps": ["crawl", "analyze", "report", "recommendations"],
"approval_required": false,
"max_tokens": 15000
}
}
}
5. Output Configuration
Specify how the agent delivers its work:
- Format: Markdown, HTML, JSON, PDF, or custom templates
- Delivery: Dashboard, webhook, email, or API response
- Quality checks: Automated validation rules the output must pass before delivery
- Versioning: Keep track of iterations and maintain version history
Building Your First Agent: Step by Step
Let's build a practical agent — a Customer Email Agent that handles marketing email creation for an e-commerce business.
Step 1: Create the Agent
In your Alfred dashboard, navigate to Agents → Create New Agent. Fill in the configuration:
Name: EmailPro
Role: Email Marketing Specialist
Description: Creates, optimizes, and A/B tests email marketing campaigns
for e-commerce businesses.
AI Engine: Claude (best for nuanced marketing copy)
Temperature: 0.7 (creative but controlled)
Step 2: Assign Tools
Select the tools EmailPro needs:
- Email Template Generator
- Subject Line Optimizer
- A/B Test Designer
- Copy Writer
- Personalization Engine
- Send Time Optimizer
- Compliance Checker (CAN-SPAM, CASL)
Step 3: Upload Context
Give EmailPro the information it needs:
- Your brand voice guide and approved messaging
- Past email campaigns with performance data (open rates, click rates, conversions)
- Product catalog with descriptions, prices, and images
- Customer segment definitions (new customers, loyal buyers, lapsed customers)
- Legal requirements (unsubscribe requirements, Canadian CASL compliance)
Step 4: Define Workflows
Create task templates for common email types:
Welcome Sequence:
1. Generate 5-email welcome sequence
2. Each email: subject line, preview text, body, CTA
3. Run subject lines through A/B optimizer
4. Check all emails against CAN-SPAM and CASL
5. Output: HTML-ready emails with plain text fallbacks
Promotional Campaign:
1. Review promotion details
2. Generate email copy with urgency elements
3. Create 3 subject line variants for testing
4. Optimize send time based on historical data
5. Output: Campaign package with all variants
Step 5: Test and Deploy
Before deploying EmailPro for production use, run test tasks:
Test prompt: "Create a welcome email sequence for new customers
who signed up through our spring promotion. Include a 15% discount
code SPRING15 in email #2."
Review the output for quality, brand consistency, and compliance. Adjust the agent's configuration based on results. Once satisfied, deploy the agent and start assigning real tasks.
Advanced Agent Patterns
Agent Chaining
Connect multiple agents in a pipeline. Your Research Agent feeds data to your Analysis Agent, which passes insights to your Content Agent. Each agent specializes in one phase, producing higher-quality results than a single agent attempting the entire workflow.
Event-Driven Agents
Configure agents to activate based on triggers:
- "When a new customer signs up, send a personalized welcome email sequence"
- "When website traffic drops below threshold, generate a diagnostic report"
- "Every Monday, produce a weekly content performance summary"
Learning Agents
Agents can improve over time. When you approve or reject an agent's output, that feedback is incorporated into future tasks. After 50-100 feedback cycles, most agents show measurably improved output quality.
Deployment Best Practices
- Start with a narrow scope. An agent that does one thing exceptionally is better than one that does ten things poorly.
- Provide rich context. The more relevant information you give an agent, the better its outputs. Don't skimp on the context upload step.
- Set quality gates. Use approval workflows for high-stakes outputs like customer-facing emails or published content.
- Monitor token usage. Track how many tokens each agent consumes per task and optimize configurations to reduce waste.
- Iterate on feedback. Review agent outputs weekly and refine configurations. Small adjustments compound into significant quality improvements.
- Document your agents. Maintain a registry of active agents, their purposes, configurations, and owners. This is essential as your agent fleet grows.
Build Your First Agent
Create custom AI agents tailored to your business in minutes. Start with our free tier and scale as needed.
Create an Agent
Someone from somewhere
just launched website.com
Just now