Included Agents
Anar Agents ships with three pre-built agents designed for common GCC government workflows. Each agent comes with a tuned system prompt, a curated tool set, and domain-specific behavior.
Citizen Inquiry Agent
Handles citizen questions about government services in both Arabic and English. This agent is the front line for digital government portals and automated service desks.
Tools:
| Tool | Description |
|---|---|
lookup_service | Look up information about a specific government service by name |
get_office_hours | Retrieve office hours and contact details for government departments |
check_application_status | Check the status of a submitted application by tracking ID |
Example interaction:
Citizen: أريد معرفة حالة طلبي رقم VA-2024-001
Agent: [calls check_application_status("VA-2024-001")]
Agent: طلبكم رقم VA-2024-001 قيد المراجعة حالياً. تم تقديمه بتاريخ 10 يناير 2024 ومن المتوقع الانتهاء بحلول 20 يناير 2024.
The Citizen Inquiry agent detects the language of the input and responds in kind. Arabic questions receive Arabic responses; English questions receive English responses.
Customization
The Citizen Inquiry agent's system prompt can be customized per deployment. Government entities can add specific service catalogs, operating procedures, and escalation policies to the prompt.
Document Review Agent
Reviews submitted documents for completeness and compliance. Useful for intake desks where citizens submit applications, supporting documents, and identification.
Tools:
| Tool | Description |
|---|---|
check_requirements | Look up the required documents for a given application type |
validate_document | Validate that a specific submitted document meets format and content requirements |
generate_checklist | Generate a completeness checklist for a given application type |
Example interaction:
User: I'm submitting a restaurant permit application. Is my package complete?
Agent: [calls check_requirements("restaurant_permit")]
Agent: [calls generate_checklist("restaurant_permit")]
Agent: For a restaurant permit, you need the following documents:
1. Trade license — Required
2. Food safety certificate — Required
3. Floor plan — Required
4. Fire safety clearance — Required
5. Health inspection report — Required
Please upload each document and I'll validate them individually.
The Document Review agent works well in tandem with Anar Docs for automated OCR and extraction of submitted documents.
Permit Processor Agent
Guides citizens through the permit application process step by step. Covers permit type identification, eligibility checking, fee estimation, and application submission guidance.
Tools:
| Tool | Description |
|---|---|
get_permit_types | List available permit types, optionally filtered by category |
get_permit_steps | Get the step-by-step process for a specific permit type |
check_eligibility | Check whether the applicant meets eligibility criteria |
estimate_fees | Calculate estimated fees based on permit type and parameters |
Example interaction:
Citizen: I want to open a restaurant in Abu Dhabi. What permits do I need?
Agent: [calls get_permit_types("food_and_beverage")]
Agent: [calls get_permit_steps("restaurant_permit")]
Agent: [calls estimate_fees("restaurant_permit", {"location": "abu_dhabi"})]
Agent: To open a restaurant in Abu Dhabi, you'll need:
1. Commercial Trade License (DED) — AED 10,000-15,000
2. Food Safety Permit (ADFCA) — AED 2,000
3. Civil Defense Clearance — AED 1,500
Total estimated fees: AED 13,500-18,500
The process takes approximately 4-6 weeks. Would you like me to walk you through each step?
Deploying Pre-Built Agents
Pre-built agents are automatically registered when the backend starts. They appear in the agent list alongside any custom agents you create.
# List all agents — pre-built agents are included
curl http://localhost:8005/api/v1/agents
[
{
"id": "citizen-inquiry",
"name": "Citizen Inquiry",
"description": "Handles citizen questions in Arabic + English",
"status": "active",
"tools": ["lookup_service", "get_office_hours", "check_application_status"]
},
{
"id": "document-review",
"name": "Document Review",
"description": "Reviews document completeness and compliance",
"status": "active",
"tools": ["check_requirements", "validate_document", "generate_checklist"]
},
{
"id": "permit-processor",
"name": "Permit Processor",
"description": "Guides permit applications step by step",
"status": "active",
"tools": ["get_permit_types", "get_permit_steps", "check_eligibility", "estimate_fees"]
}
]
Extending Pre-Built Agents
Pre-built agents serve as starting points. You can customize them by:
- Modifying system prompts to reflect your specific government entity's services and policies
- Adding tools to expand the agent's capabilities with new data sources
- Adjusting parameters like
max_stepsandtemperaturefor your use case - Cloning a pre-built agent and creating a specialized variant for a particular department
curl -X POST http://localhost:8005/api/v1/agents \
-H "Content-Type: application/json" \
-d '{
"name": "Abu Dhabi Visa Agent",
"description": "Specialized visa inquiry agent for Abu Dhabi",
"system_prompt": "You are a visa services specialist for Abu Dhabi. You handle tourist, work, and residence visa inquiries...",
"model": "llama-3.3-70b-versatile",
"max_steps": 8,
"tools": ["lookup_service", "check_application_status", "check_eligibility", "estimate_fees"]
}'