Documentation Index
Fetch the complete documentation index at: https://docs.ansa.so/llms.txt
Use this file to discover all available pages before exploring further.
What Are Tools?
Tools extend what your AI agent can do beyond answering questions. With tools, your agent can:- Fetch data from external APIs (product info, order status, weather)
- Display rich content (product cards, carousels, tables)
- Collect information through interactive forms
- Trigger actions in your systems (create tickets, send notifications)
Tool Types
Ansa supports three types of tool execution:| Type | Description | Use Case |
|---|---|---|
http | Makes HTTP requests to APIs | Fetch data, trigger webhooks |
form | Displays interactive forms | Collect user information |
mock | Returns static/templated responses | Testing, demos |
Creating a Tool
Navigate to Agent → Tools → Create Tool:Basic Configuration
Every tool needs:| Field | Description | Example |
|---|---|---|
| Name | Unique identifier (lowercase, underscores) | search_products |
| Description | When should the AI use this tool? | ”Search for products when user asks about items” |
| Input Schema | Parameters the tool accepts | See below |
Naming Conventions
Tool names must:- Start with a letter or underscore
- Use only lowercase letters, numbers, and underscores
- Be unique within the agent
/^[a-z_][a-z0-9_]*$/
✅ search_products, get_order_status, contact_form
❌ Search Products, get-order, 123tool
Input Schema
Define what parameters the AI should provide:How the AI Uses Tools
When a user sends a message, the AI:- Analyzes the user’s request
- Decides if a tool would help answer it
- Extracts the required parameters from the conversation
- Calls the tool with those parameters
- Processes the result and responds naturally
- “Search for products when the user asks about items, prices, or availability”
- “Look up order status when user provides an order number or asks about shipping”
- “Show the contact form when user wants to reach support or has an issue you cannot resolve”
- “Product search” (too vague)
- “Use this tool” (no context)
Tool Execution Flow
Enabling/Disabling Tools
Toggle tools on/off without deleting them:- Enabled — AI can use this tool
- Disabled — Tool is hidden from AI
- Seasonal tools (holiday promotions)
- A/B testing different tools
- Temporarily disabling broken integrations
Tool Categories
Organize your tools by purpose:| Category | Examples |
|---|---|
| Data Lookup | Product search, order status, user info |
| Forms | Contact, lead capture, surveys |
| Actions | Create ticket, send notification |
| Display | Show pricing table, feature comparison |
Next Steps
HTTP Tools
Connect to external APIs
Form Tools
Collect user information
Display Configuration
Show rich content
Marketplace
Install pre-built tools
See Also
- HTTP Tools — API integration configuration
- Form Tools — Form fields and validation
- Display Configuration — Rich response formatting
- Submission Actions — Webhooks and notifications
- Marketplace — Pre-built tool templates