An autonomous AI agent is more than just a powerful language model; it's a digital worker designed to accomplish goals. While its "brain" can reason, plan, and understand complex instructions, its true power is unleashed when it can act. On the bots.do platform, action is enabled through tools.
Tools are the hands and feet of your AI agent. They are the bridge between the agent's digital mind and your business's operational reality. They transform your agent from a brilliant consultant into a proactive team member that can execute tasks, manipulate data, and drive real-world outcomes.
This post will guide you through why tools are essential and how you can equip your bots.do agents with custom APIs to build a truly autonomous digital workforce.
Imagine hiring a new employee. They're incredibly smart, can strategize all day, but have no computer, no phone, and no access to your company's software. They can't do much, right? A tool-less AI agent is in the same position.
The bots.do agentic workflow platform is built on a simple but powerful premise: an agent uses AI to understand a goal, plan actions, and use tools to execute those actions. The "use tools" part is what separates a bots.do agent from a simple chatbot.
By giving an agent access to your APIs, you are granting it the ability to perform the same digital tasks as a human employee, turning repetitive business services into scalable software.
At its core, a "tool" for a bots.do agent is an API endpoint that it can call to perform a specific action. You grant these capabilities when you create your bot, as shown in our basic example:
import { bots } from '@do/sdk';
// Create a bot to handle customer support inquiries
const supportBot = await bots.create({
name: 'CustomerSupportAgent',
goal: 'Resolve customer support tickets by analyzing ticket content, searching the knowledge base, and providing a helpful response.',
tools: ['knowledgeBase.search', 'tickets.update', 'email.send']
});
console.log('New Support Bot Deployed:', supportBot.id);
In this code, the tools array is the most critical part. It's the agent's toolbox. Here's what those tools might represent:
This "Business-as-Code" approach allows you to define your operational capabilities and securely grant them to your digital workforce.
Let's build a more advanced agent from scratch. Our goal is to automate the tedious process of qualifying new sales leads.
First, we need a clear, actionable goal for our agent.
Goal: "To qualify new inbound leads by enriching their data with company information and updating the corresponding record in our CRM."
Think about the steps a human sales development representative (SDR) would take:
This translates into a need for the following tools:
You don't give the agent raw API keys. The best practice is to create simple, secure wrapper functions or API endpoints that your bots.do agent can call. These endpoints handle authentication and abstract away complexity.
For example, you might create:
Now, we create our LeadQualificationAgent and give it access to the endpoints we just designed.
import { bots } from '@do/sdk';
const leadQualifierBot = await bots.create({
name: 'LeadQualificationAgent',
goal: 'Qualify new inbound leads by enriching company data from publicly available sources and updating the contact record in our CRM.',
tools: [
'enrichment.getCompanyInfo',
'crm.searchContactByEmail',
'crm.updateContactRecord'
]
});
console.log('New Lead Qualifier Bot Deployed:', leadQualifierBot.id);
With the agent deployed, you can now trigger it via a simple API call whenever a new lead comes in. When the agent receives a task like "Qualify lead: contact@newcompany.com", its agentic workflow kicks in:
This entire multi-step process happens autonomously in seconds, turning a 15-minute manual task into an on-demand, scalable service.
An AI agent's intelligence is just potential. Its ability to act is its power. By integrating your existing APIs and custom-built tools, you can transform bots.do agents from smart assistants into a fully-fledged digital workforce.
Ready to turn your business processes into autonomous agents? Explore the bots.do documentation and start building your first digital worker today.