Actions
Actions transform your AI from a passive question-answering system into an active assistant that can perform tasks, gather information, and interact with external systems. By configuring actions, you enable your AI to do more than just chat - it can search the web, escalate to humans, query databases, and integrate with custom tools.Why Actions Matter
Without actions AI agents are limited to generating text based on their training and knowledge base. Actions unlock:- Real-time information: Search the web or fetch live data instead of relying on static knowledge
- Task automation: Execute workflows, update systems, or trigger integrations
- Human collaboration: Seamlessly hand off complex issues to support teams
- Custom capabilities: Connect to your own APIs and services via MCP servers
Types of Actions
botBrains supports several categories of actions to power you AI agent.Built-in Tools
These pre-configured tools are ready to use out of the box:- Web Search
- Fetch Web Pages
- Offer Handoff
- Escalate to Human
Enable your AI to search the web for current information.Use cases:
- Finding recent news or updates
- Researching topics beyond your knowledge base
- Verifying current prices, availability, or facts
Knowledge Tools
Query your organization’s data to provide accurate, context-aware responses.Search Tables
Search Tables allow your AI to query structured data you’ve uploaded to botBrains. Unlike MCP servers, Search Tables store data directly in the platform and are ideal for tabular data that needs to be searchable by the AI. What are Search Tables:- Structured data (CSV, JSON, or JSONL files) uploaded to botBrains
- Configurable schema with searchable fields
- Support for filtering, ranges, and multi-select queries
- Data is stored and managed within the botBrains platform
- Product catalogs with pricing and inventory
- Customer order histories
- Order status databases
- FAQ databases with structured Q&A pairs
- Frequently updated data that changes too often for static knowledge
- Tabular data with specific fields you want the AI to filter and search
- Data that needs precise field-based queries (e.g., “find orders over $100”)
- Large datasets that would be inefficient as static documents
- Navigate to your project’s Tables section
- Create a new table and upload your data (CSV, JSON, or JSONL)
- Configure the schema: set data types and search types for each field
- Go to your profile’s Tools settings
- Add the search table to your profile’s tools
- The AI can now query this data at runtime
MCP Servers (3rd Party Systems)
The Model Context Protocol (MCP) allows you to connect external systems and 3rd party services to your AI. Unlike Search Tables which store data in botBrains, MCP servers connect to data and functionality that lives in your existing systems. What are MCP Servers:- External services accessed via the Model Context Protocol
- Data and actions remain in the 3rd party system (not stored in botBrains)
- Can expose multiple tools per server
- Support both read and write operations
- Examples: Salesforce, HubSpot, Stripe, Shopify, Zapier, custom APIs
- CRM integrations - Query and update records in Salesforce, HubSpot
- Ticketing systems - Create and manage tickets in Jira, Zendesk
- Payment platforms - Check order status, process refunds in Stripe, PayPal
- E-commerce platforms - Query inventory, update orders in Shopify, Square
- Automation platforms - Trigger workflows in Zapier, Make
- Internal APIs - Connect to your own custom services and databases
- Custom business logic - Execute company-specific operations
- Data lives in an external system (CRM, ticketing, payment platform)
- You need to execute actions in 3rd party services
- Data is too sensitive to upload to botBrains
- You want real-time access to data in its source system
- The external system already has an API you can wrap with MCP
- Navigate to your profile’s MCP Servers tab
- Choose a pre-built integration or add a custom server URL
- Provide authentication credentials and headers
- Test the connection to discover available tools
- Configure which tools are enabled and set approval requirements
- Tools from the MCP server are now available to your AI
MCP servers require a compatible endpoint that implements the Model Context Protocol specification. botBrains provides pre-built integrations for popular platforms like Salesforce, Stripe, and HubSpot.
Search Tables vs MCP Servers
| Aspect | Search Tables | MCP Servers |
|---|---|---|
| Data Location | Stored in botBrains | Stays in external system |
| Use Case | Structured data queries | External system integration |
| Setup | Upload CSV/JSON files | Connect via URL + auth |
| Examples | Product catalogs, order histories | Salesforce, Stripe, HubSpot |
| Best For | Data you can upload | Data that must stay external |
| Freshness | On manual upload | Real-time |
| Actions | Read-only queries | Read and write operations |
Trigger-Based Actions
Triggers execute automated actions when specific conditions are met, without requiring AI decision-making. Available trigger actions:Block
Prevent conversations from continuing when criteria match
Assign Label
Automatically tag conversations, users, or messages
Unassign Label
Remove labels based on conditions
- When: The event that fires the trigger (e.g., “User Message Received”)
- Audience: Conditions that must be met (using audience builder)
- Then: Actions to execute
Configuring Actions
Enabling Built-in Tools
- Navigate to your profile in the botBrains platform
- Go to the Tools tab
- Toggle the desired tools under “General Tools”
- Configure tool-specific parameters if needed
- Save your profile
Adding Custom MCP Servers
- Go to your profile’s MCP Servers section
- Click “Add Server”
- Enter the server URL and any required authentication headers
- Test the connection to verify it’s working
- Import tools from the server
- Configure tool approval settings:
- Always allowed: AI can use without approval
- Require approval: User must confirm before execution
- Disabled: Tool is not available
Setting Up Triggers
- Navigate to Settings > Triggers
- Click “Create Trigger”
- Name your trigger and define the conditions:
- Select the trigger event
- Use the audience builder to specify criteria
- Add one or more actions to execute
- Enable the trigger and save
Action Approval Flow
For sensitive or critical actions, you can require user approval before execution.How it works:
- AI determines an action is needed
- AI presents the action to the user with an explanation
- User approves or rejects the action
- If approved, the action executes and results are returned to the AI
- AI continues the conversation with the action’s results
Configuring approval:
For MCP server tools, set the approval requirement in the tool configuration:- Tools marked “with approval” will ask for user confirmation
- Tools marked “always” execute immediately
- Tools marked “disabled” are not available to the AI
Best Practices
When to Use Actions
- Good Use Cases
- Poor Use Cases
- Searching for real-time information
- Querying frequently updated data
- Creating support tickets or handoffs
- Executing well-defined workflows
- Integrating with existing tools
Security Considerations
- Only grant access to tools the AI genuinely needs
- Require approval for actions that modify data
- Use triggers for security and moderation rules
- Regularly audit which tools are enabled
- Validate MCP server connections are secure
Performance Tips
- Keep tool responses concise and structured
- Cache frequently accessed data in search tables
- Use triggers instead of tool-based logic for simple rules
- Monitor tool usage and response times
- Disable unused tools to reduce decision overhead
Practical Examples
Example 1: E-commerce Support Bot
Scenario: Customer asking about order status Actions configured:- Search Table: Order database
- Offer Handoff: For complex shipping issues
- Trigger: Auto-label conversations mentioning “refund”
- User asks “Where is my order #12345?”
- AI uses order database search table to find order status
- If order is delayed, AI offers handoff to support team
- Trigger automatically labels conversation with “order-status”
Example 2: Technical Documentation Assistant
Scenario: Developer looking for API information Actions configured:- Web Search: For community discussions
- Fetch Web Pages: To read latest documentation
- Search Table: API endpoint reference
- User asks “How do I authenticate with the API?”
- AI searches API reference table for authentication endpoints
- If latest changes exist, AI fetches current documentation page
- AI provides comprehensive answer with code examples
Example 3: Content Moderation
Scenario: Blocking spam and inappropriate content Actions configured:- Trigger: Block conversations from users labeled “spam”
- Trigger: Auto-label messages with profanity as “flagged”
- Escalate to Human: For severe policy violations
- User with “spam” label sends message
- Trigger immediately blocks the conversation
- If message contains profanity, separate trigger labels it “flagged”
- Human moderators review flagged conversations
Related Documentation
- Guidance - Configure AI behavior and instructions
- Knowledge - Manage your AI’s knowledge base
- Audiences - Define user segments for triggers
- Triggers - Set up automated security and routing rules
- Escalations - Configure human handoff workflows