What is an AI agent and how is it different from a chatbot?
An AI agent is software that receives a task, decides how to complete it, runs actions across different systems, and checks whether it achieved the goal. Unlike a chatbot that waits for a question and responds based on text, an AI agent initiates actions: it sends a WhatsApp message, updates a CRM record, checks if the customer replied, and if not - reminds them after two days. It operates according to predefined logic, but the language model inside it decides how to phrase a message, which CRM field to update, and when to stop.
A chatbot answers. An agent acts.
We build agents on n8n, with language models from OpenAI or Anthropic, and connect them to WhatsApp Cloud API, CRMs like HubSpot or Pipedrive, and Google Sheets. The agent runs on a schedule we set - usually hourly - or is triggered by an event like an incoming message or a submitted form.
How does an AI agent work internally?
An AI agent works in a four-step cycle: it reads the task, decides which action to take, executes it, and checks if it’s done. If not done, it repeats the cycle.
Suppose the task is “send the customer a quote and update the CRM”. The agent reads the customer name and product, looks up the price in Google Sheets, calculates the final price, sends a WhatsApp message with the details, and updates a field in HubSpot with the date and amount. If the send failed, it tries again or passes an alert.
In n8n we build this as a workflow: one node reads the data, a second node sends a prompt to the language model with the instructions, a third node executes the action the model returned, and a fourth node checks if everything worked. If something failed, the webhook retries three times before it moves to the error queue.
The model itself doesn’t execute anything - it only returns JSON with the action name and parameters. n8n interprets the JSON and activates the appropriate node.
What can an AI agent do in my business?
An AI agent can perform any task that has clear rules, access to systems via API, and a result that can be verified. It’s not suitable for tasks requiring legal judgment, budget approval, or decisions that cannot be reversed.
Examples of what works:
- Lead management: A customer sends a WhatsApp message, the agent asks clarifying questions, creates a CRM card, and routes to the right sales rep by region or product.
- Reminders and follow-up: If a customer hasn’t replied within 48 hours, the agent sends an automatic reminder. If still no reply after a week, it updates the status to “inactive”.
- Quote generation: The agent reads a price list from Sheets, calculates a discount based on quantity, sends a PDF to the customer, and saves a copy in the CRM.
- Weekly reporting: The agent collects data from CRM and Sheets, calculates metrics, and sends a report via WhatsApp or email to the manager.
What doesn’t work: An agent cannot conduct complex negotiations, approve a contract, or decide whether to extend credit to a customer. It can prepare the data and pass the decision to a person.
We see the best results when the agent handles recurring tasks that take 5-15 minutes manually, happen at least once a day, and require access to two or more systems. AI agents are particularly suitable for businesses working with WhatsApp, CRM, and price lists in Sheets.
What tools do you need to build an AI agent?
To build an AI agent you need three components: an automation platform that runs the logic, a language model that makes decisions, and systems the agent connects to.
| Component | Options | When to use |
|---|---|---|
| Automation platform | n8n, Make, Zapier | n8n for complex systems with conditional logic; Make for simple visual processes; Zapier for quick connection of 3-5 tools without development |
| Language model | GPT-4, Claude, Gemini | GPT-4 for long text and complex tasks; Claude for tasks requiring context understanding; Gemini if you need to process images |
| Target systems | WhatsApp Cloud API, HubSpot, Pipedrive, Google Sheets | WhatsApp for customer communication; HubSpot or Pipedrive for lead management; Sheets for price lists and shared data |
We work with n8n because it allows building branching logic, handling errors at a high level, and running everything on a private server. This matters when working with customer data or financial information. Make is a good choice if you need to set up something fast, but it struggles when there are more than 10 nodes or when you need complex logic. Zapier suits a business that wants to connect Gmail to Trello and doesn’t plan to expand.
The model depends on the task: GPT-4 is good at writing and understanding complex instructions, Claude is better when you need to process long text or identify intent, and Gemini fits if the agent needs to read images or scanned documents.
How long does it take to build a working AI agent?
A simple AI agent - one that receives a message, checks one condition, and updates a CRM - takes two days to a week to build and test. A more complex agent, with multiple conditions, connection to three systems, and error handling, takes two weeks to a month.
The time breaks down into four stages:
- Specification (one to three days): Define what the agent needs to do, in which cases, and what happens when something doesn’t work. This is the stage where you decide whether the agent passes decisions to a person or handles them alone.
- Building (one day to a week): Build the workflow in n8n, connect the systems, and write the prompts for the language model.
- Testing (two days to a week): Run the agent on real data, check what happens when a customer writes something unexpected, and verify it doesn’t send duplicate messages.
- Controlled deployment (one to two weeks): The agent runs on a subset of leads or during limited hours, and we monitor every action. After a week without issues, move to full deployment.
The longest time is not the building - it’s the testing. An agent that works 80% of the time is an agent that doesn’t work, because the other 20% creates manual work to fix the damage.
What’s the difference between an AI agent and regular automation?
Regular automation follows a fixed flowchart: if A happens, do B, otherwise do C. An AI agent receives a goal and decides in real time how to achieve it, based on context.
Example: Regular automation handling a new lead will check if the “product” field contains the word “consulting”, and if so route to rep A, otherwise to rep B. An AI agent will read the customer’s message, identify that they’re asking about consulting even if they didn’t use that word, and route to the right rep based on content.
Regular automation is faster, cheaper, and easier to maintain. The agent is more flexible and handles cases you didn’t plan for. We use regular automation when the process is simple and stable, and an AI agent when there’s high variation in inputs or when you need to understand intent.
Often we combine them: automation handles the fixed steps - sending webhooks, saving to CRM - and the agent handles the part requiring a decision, like phrasing the response or choosing the appropriate product. This gives you the stability of automation with the flexibility of AI.
What happens when the agent makes a mistake?
When an AI agent makes a mistake, it can send a message to the wrong customer, update a CRM field with an incorrect value, or give a wrong price. That’s why we build three safety mechanisms into every agent:
- Human approval for critical tasks: If the agent needs to send a quote above a certain amount, it sends a draft for approval rather than sending directly to the customer.
- Full log of every action: Every agent decision is saved in Google Sheets or n8n, with timestamp, the data it received, and the prompt sent to the model. If something went wrong, we know exactly what happened.
- Hard limits: The agent cannot send more than X messages per day, cannot update certain financial fields, and cannot delete data. These limits are defined in the workflow itself, not in the language model.
We also run the agent in “watch only” mode in the first week: it decides what to do but doesn’t execute - only sends an alert with the decision. This allows catching mistakes before they reach the customer.
The models themselves are improving, but they still make mistakes. GPT-4 can decide that two customers with similar names are the same person, or interpret a request in a way that wasn’t intended. The solution is not to trust the model alone, but to build the controls around it.
Is an AI agent suitable for a small business?
An AI agent is suitable for a small business if it has a recurring task that takes time, systems that can be connected to, and willingness to invest two weeks to a month in building. It’s not suitable if the process changes every week, if there’s no API access to the systems, or if the business is still figuring out what customers want.
The first agent that fits a small business is usually one that handles WhatsApp inquiries: it asks the customer what they’re looking for, returns basic information, and creates a CRM card. This saves 10-20 minutes per inquiry and allows the business owner to respond only to inquiries ready to convert.
A business with fewer than 10 inquiries per day probably won’t see fast ROI. A business with 30-50 inquiries per day will see ROI within two to three months. The calculation is simple: if the agent saves 10 minutes per inquiry, and there are 40 inquiries per day, that’s 400 minutes - almost 7 hours - per day. Even if the agent handles only 60% of inquiries, that’s still 4 hours freed up for other tasks.
We recommend starting with one agent, simple, handling one task. After it works for a month without issues, you can add another task. A business trying to build five agents at once usually fails to maintain any of them.
How do you choose the language model for an agent?
Choosing the language model depends on three things: what the agent needs to do, how many times it runs, and how much you’re willing to pay.
GPT-4 is the default for tasks requiring context understanding, long writing, or complex decisions. It’s more expensive - about $0.03 per thousand tokens in reading and $0.06 in writing - but it makes fewer mistakes. We use it when the agent writes quotes, drafts messages to customers, or decides which sales rep is appropriate.
Claude is better for tasks requiring reading long text - for example, analyzing long customer messages or processing documents. It also tends less to “make up” information when it’s uncertain. The price is similar to GPT-4.
Smaller models, like GPT-3.5, suit simple tasks that repeat: sorting leads by category, identifying if a message is urgent or not, extracting name and phone number from text. They’re 10 times cheaper than GPT-4, but they make more mistakes on tasks requiring understanding.
Our rule: if the agent runs fewer than 100 times per day, use GPT-4 and focus on accuracy. If it runs thousands of times per day, check if a smaller model suffices, and move to GPT-4 only for complex cases.
What does it take to maintain an AI agent after it goes live?
After an AI agent goes live, it needs three things: ongoing monitoring, fixing errors when they’re discovered, and updating when systems change.
Monitoring means checking the log once a day: how many times the agent ran, how many actions succeeded, and how many failed. If more than 5% of actions fail, something went wrong. In n8n we set up an alert to Slack or WhatsApp when there are more than X errors per hour.
Fixing errors happens when the agent encounters a case we didn’t plan for. For example: a customer writes “I want 5 pcs” and the agent doesn’t recognize it’s a quantity because it looked for a number only. We add this case to the prompt, check that it works, and deploy a new version.
System updates happen when an API changes, when you add a new field to the CRM, or when a product price changes. If the change is small - for example, a field name - it takes 10 minutes. If the change is large - for example, moving from HubSpot to Pipedrive - you need to rebuild the connection.
A business running one agent invests on average 2-3 hours per month on maintenance. A business with five agents invests one to two days. This is not “set and forget” - it’s a tool that needs maintenance, like a website or CRM system.
Want to know which automation is right for your business? A free 30-minute diagnostic call, no commitment, we'll map out your processes together and honestly tell you if and how automation can help.
