Skip to main content

Overview

This is where knowledge agents become truly powerful. While knowledge lets your agent understand and answer questions, tools let it actually do things. Knowledge agents can orchestrate three types of tools: The key concept: Your knowledge agent intelligently decides when to use each tool based on the conversation context. You just enable the tools and write good system prompts that guide when to use them.

How Function Calling Works

When you enable tools for your knowledge agent, here’s what happens:
Important: The AI decides which tools to call and in what order. You guide this through:
  • System instructions that explain when to use each tool
  • Clear tool names and descriptions
  • Good conversation design

Workflow Agents as Tools

This is the most common and powerful integration. Your knowledge agent can call any of your workflow agents to accomplish tasks.

How It Works

Workflow agents are your deterministic automations (step-by-step processes). Knowledge agents are conversational and decide when to invoke those automations. Think of it like:
  • Workflow agents = Specialized workers (do one thing really well)
  • Knowledge agents = Manager (decides who to call for what task)

Adding Workflow Agents

  1. Navigate to your knowledge agent builder
  2. Click the “Action Agents” tab
  3. You’ll see a list of all your workflow agents
  4. Check the box next to each workflow you want to enable
  5. Click “Save Action Agents Selection”
That’s it! Your knowledge agent can now call those workflows.
Start with 2-3 workflows maximum when testing. Add more once you’ve verified each one works individually.

Making Your Knowledge Agent Use Workflows

Just enabling a workflow doesn’t mean your knowledge agent will use it. You need to guide the AI through system instructions.

Good System Instructions for Workflow Tools

Bad example: “You have workflows available to help users.”This is too vague. The AI won’t know when to use what.

Naming Your Workflow Agents

Make sure your workflow agents have clear, descriptive names: Good names:
  • “Company Research Tool”
  • “Email Sender”
  • “Data Analyzer”
  • “LinkedIn Profile Enricher”
Bad names:
  • “Agent 1”
  • “My Workflow”
  • “Test”
  • “Automation”
The name is part of the AI’s decision-making process!

Passing Data Between Expert and Workflow Agents

When your knowledge agent calls a workflow, it can: Send data to the workflow:
  • User input from the conversation
  • Data retrieved from knowledge base
  • Results from previous tool calls
Receive data from the workflow:
  • Workflow outputs
  • Structured data
  • Generated content
  • Status/error messages
The knowledge agent then uses this data to continue the conversation naturally.

Example: Research Assistant with Multiple Workflows

Enabled workflows:
  • “Web Search” - Searches the internet
  • “Company Enrichment” - Gets company details
  • “Create Google Doc” - Saves to Google Docs
System instructions:
Sample conversation:

MCP (Model Context Protocol) Servers

MCP is an advanced feature for developers who want to build custom tools for their knowledge agents.

What is MCP?

Model Context Protocol is an open standard for connecting AI agents to external tools and data sources. It allows you to:
  • Build custom tools in any programming language
  • Connect to proprietary systems
  • Extend agent capabilities beyond built-in features
  • Share tools across different agents

When to Use MCP

Use MCP servers when:
  • You need custom functionality not available in workflow agents or integrations
  • You’re connecting to proprietary internal systems
  • You want fine-grained control over tool behavior
  • You’re comfortable with development/technical setup

Setting Up MCP Servers

Technical knowledge required: Setting up MCP servers requires development experience. Most users should start with workflow agents and Composio integrations.
High-level process:
  1. Build your MCP server following the MCP specification
  2. Deploy it somewhere your knowledge agent can access
  3. Register it with your knowledge agent:
    • Go to knowledge agent settings
    • Navigate to MCP configuration
    • Add your server URL and authentication
  4. Reference it in system instructions so the agent knows when to use it
Example MCP server use case:

MCP vs Workflow Agents

Recommendation: Start with workflow agents. Only use MCP if you have specific technical requirements.

Composio Integrations

Composio provides 100+ pre-built integrations with popular apps and services. This lets your knowledge agent take actions in external systems.

Available Integrations

Communication:
  • Slack - Send messages, create channels
  • Gmail - Send emails, read inbox
  • Discord - Post messages, manage servers
CRM & Sales:
  • HubSpot - Create contacts, deals, notes
  • Salesforce - Update records, search data
  • Pipedrive - Manage pipeline
Productivity:
  • Google Drive - Create/read documents
  • Notion - Update databases, create pages
  • Asana - Create/update tasks
And 90+ more integrations across categories like marketing, development, data, and analytics.

Setting Up Composio Integrations

  1. Navigate to your knowledge agent builder
  2. Click the “Integrations” tab (or “Composio” tab)
  3. Browse available integrations
  4. Click on an integration you want to enable
  5. Authenticate - Connect your account (OAuth flow)
  6. Configure permissions - Choose what the agent can access
  7. Save the integration
Now your knowledge agent can call that service!

Guiding Your Agent to Use Integrations

Like with workflow agents, you need to tell your knowledge agent when to use integrations via system instructions.

Example: Slack Integration

System instructions:
Conversation:

Security Best Practices

Important: Integrations have real access to your accounts. Be careful with public knowledge agents.
  • Don’t share agents that have sensitive integrations
  • Review what permissions each integration needs
  • Add confirmation steps for destructive actions
  • Consider separate accounts for agent integrations
Safe system instruction pattern:

Combining Multiple Tools

The real power comes from knowledge agents orchestrating multiple tools together.

Example: End-to-End Sales Research Agent

Enabled tools:
  • “Company Research” workflow agent
  • “LinkedIn Profile Enrichment” workflow agent
  • HubSpot integration (Composio)
  • Gmail integration (Composio)
System instructions:
Sample interaction:

Multi-Tool Orchestration Best Practices

Do:
  • Let the agent decide the order of tool calls
  • Build confirmation steps for sensitive actions
  • Chain related tools logically (research → enrich → save)
  • Use results from one tool to inform the next
Don’t:
  • Try to hard-code exact sequences (let AI adapt)
  • Enable too many tools at once (start with 3-5)
  • Skip confirmation on actions like sending emails
  • Forget to handle errors gracefully

Troubleshooting Tools

Symptoms: Agent responds conversationally but doesn’t invoke the workflowPossible causes:
  1. Workflow not enabled in Action Agents tab
  2. System instructions don’t mention when to use it
  3. Workflow name is unclear
  4. Agent doesn’t think it’s relevant to the request
Solutions:
  • Verify workflow is checked in Action Agents tab
  • Add explicit instructions: “Use [workflow name] when users ask to [task]”
  • Rename workflow to be more descriptive
  • Ask more directly: “Use the [workflow name] to research…”
  • Test workflow independently to ensure it works
Symptoms: Agent calls the workflow but gets errorsPossible causes:
  1. Workflow itself has a bug
  2. Knowledge agent passing wrong data format
  3. Workflow expecting different inputs
Solutions:
  • Test the workflow agent independently (run it directly)
  • Check workflow input requirements
  • Review what data the knowledge agent is passing
  • Update system instructions to format data correctly
  • Add error handling to the workflow
Symptoms: Agent uses Tool A when Tool B would be betterPossible causes:
  1. Tool names/descriptions are ambiguous
  2. System instructions unclear about when to use what
  3. User request was vague
Solutions:
  • Make tool names more specific and distinct
  • Add clear boundaries in system instructions: “Use Tool A for [specific case]. Use Tool B for [different case].”
  • Test with specific requests that clearly need one tool
  • Reduce number of similar tools enabled
Symptoms: Can’t connect or authenticate with external servicePossible causes:
  1. OAuth flow expired or interrupted
  2. Wrong permissions requested
  3. Service credentials changed
  4. Rate limits exceeded
Solutions:
  • Re-authenticate the integration (disconnect and reconnect)
  • Check service status (is the external service down?)
  • Review required permissions for the integration
  • Wait if rate limited, then try again
  • Contact support if integration consistently fails
Symptoms: Agent over-engineers simple tasks by calling multiple toolsPossible causes:
  1. System instructions encourage thoroughness without boundaries
  2. Agent trying to be helpful but overdoing it
Solutions:
  • Add efficiency guidelines to system instructions: “Use the minimum number of tools needed to complete the task”
  • Specify when NOT to use certain tools
  • Test with simple requests and iterate on prompts
  • Consider if you enabled too many overlapping tools
Answer: As the builder testing your agent:
  • Look for “[Calling workflow name…]” messages
  • Watch for integration loading states
  • Check agent response for explicit mentions
For end users, the visibility depends on your UX preferences. You can:
  • Configure system instructions to announce tool usage
  • Have agent explain what it’s doing
  • Keep tool calls invisible for seamless experience
Example system instruction: “When you call a tool, tell the user: ‘Let me use [tool name] to [accomplish task]…’”

Advanced: Tool Call Patterns

The Research-Execute Pattern

Good for: Sales outreach, content creation, CRM management

The Pipeline Pattern

Good for: Data processing, lead enrichment, report generation

The Approval-Gate Pattern

Good for: Public-facing agents, agents with write permissions

The Fallback Pattern

Good for: Resilient agents, agents with redundant capabilities

Testing Your Tools

After enabling tools, thoroughly test:

1. Individual Tool Testing

Test each tool separately:
  • “Use [workflow name] to research Microsoft”
  • “Send a test message to #test-channel on Slack”
  • “Create a test contact in HubSpot”
Verify:
  • Tool is called correctly
  • Data is passed properly
  • Results come back as expected
  • Errors are handled gracefully

2. Multi-Tool Sequences

Test tool combinations:
  • “Research Company X and add them to HubSpot”
  • “Analyze this data and save results to Google Sheets”
  • “Find recent news and post summary to Slack”
Verify:
  • Tools are called in logical order
  • Data flows between tools correctly
  • User gets progress updates
  • Final result is complete

3. Edge Cases

Test failure scenarios:
  • What happens if a workflow fails?
  • What if an integration is disconnected?
  • What if the user provides incomplete information?
Verify:
  • Graceful error messages
  • Agent asks clarifying questions
  • Doesn’t get stuck in loops
  • Offers alternatives

4. Approval Workflows

Test confirmation flows:
  • Does agent ask before sensitive actions?
  • Can user say “no” and agent respects it?
  • Does agent re-confirm if request changes?

Best Practices Summary

Tool Integration Best Practices

DO:
  • Start with 2-3 tools and add more gradually
  • Write explicit system instructions for each tool
  • Use clear, descriptive tool names
  • Test each tool individually before combining
  • Add confirmation steps for sensitive actions
  • Let the AI decide when to use tools (don’t hard-code)
DON’T:
  • Enable every tool at once
  • Assume the AI knows when to use tools without guidance
  • Skip testing multi-tool scenarios
  • Give public agents access to sensitive integrations
  • Forget to handle errors and edge cases

Next Steps

Now that you understand how to give your knowledge agent powerful action-taking capabilities:

Manage Conversations

Learn about conversation management, sharing, and user experience

Best Practices

Advanced techniques for building exceptional knowledge agents

Troubleshooting

Solve common issues and optimize performance

Build Workflow Agents

Create the workflow agents your knowledge agent will call
Remember: Tools transform your knowledge agent from a conversational assistant into a powerful automation orchestrator. Start simple, test thoroughly, and gradually build up to complex multi-tool workflows.