
Digital Transformation (Part 2): Automating Processes in a Chatbot
Published on:
Reading time: 17 min
Topic: Management
Author: Leandro Valencia
How to bring a process into a chatbot: inputs, REST API validations, outputs, brand personality, and ad-driven funnels to automate the entire customer lifecycle.
Table of Contents
- 1. Why chat changes the rules of the process
- 3. Brand personality: the bot is your brand too
- 4. Critical processes: the fewest clicks possible
- 7. Where should you build all this? My recommendation: HiBot
- 8. Checklist: is your chatbot ready to scale?
- Conclusion: automate to be the best option
1. Why chat changes the rules of the process
A process designed for an office, a web form or a phone call does not work the same way in a chat. The channel has its own rules:
- It is conversational: people write the way they speak, with typos, voice notes, emojis and messages split into three parts.
- It is immediate: the user expects an answer in seconds, not in hours.
- It is mobile: the screen is small; a menu with 15 options is a wall.
- It is asynchronous: the user can leave halfway through and come back tomorrow expecting you to remember where they left off.
- It is personal: they are in the same app where they talk to their family; tone matters.
That is why, before automating, you have to redesign the process with the channel in mind. It is not about copying the 12-field form into the chat and asking 12 questions in a row. It is about asking yourself: what is the shortest possible conversation that solves this problem?
Some practical rules for optimizing a chat-oriented process:
- Only ask for what you don't know. If the user is already identified by their phone number and exists in your CRM, don't ask for their name again.
- One piece of data per message. Asking for an ID, an email and an address in a single message generates incomplete answers.
- Use buttons and lists when the options are closed, and free text only when you really need it.
- Confirm before executing. "You are about to order 2 size M t-shirts for $120,000, do you confirm?" avoids costly mistakes.
- Keep the context. If the user leaves and comes back, pick up where they left off.
- Always provide an exit to a human. Automation is not about trapping the user; it is about quickly solving what is repetitive and escalating what is complex.
2. A chatbot is software: inputs, processes, validations and outputs
Here is the most important idea in this article: a chatbot is not a pretty tree of answers; it is software. And like any software, it can (and should) be defined with the same logic as any system:
| Component | What it is | Example in an order chatbot |
|---|---|---|
| Inputs | The data that arrives at the system | The user's message, phone number, chosen product, address, photo of the payment receipt |
| Processes | The rules and steps that transform those inputs | Identify the customer, build the cart, calculate shipping, create the order |
| Validations | The checks that prevent errors | Does the product have stock? Does the address have coverage? Was the payment approved? |
| Outputs | What the system produces | Confirmation to the user, order created in the ERP, lead updated in the CRM, order sent to the warehouse |
When you define your chatbot this way, two good things happen: the technical team knows exactly what to build, and the business knows exactly what to expect.
Inputs: not everything is text
In a chat, inputs can be:
- Free text (which may require interpretation with AI or NLP).
- Structured responses (buttons, lists, selections).
- Files (photos, documents, payment receipts).
- Location.
- Context data: the phone number, the channel of origin, the ad the user came from, the previous history.
That last point is gold: if the user arrived from an ad for the "Business Plan", the bot already knows what they want to talk about without asking.
Processes and validations: this is where REST APIs come in
A chatbot that only answers with fixed information is an interactive brochure. The real value appears when the chatbot connects with the systems the company already uses: the CRM, the ERP, the invoicing system, the payment platform, inventory, the scheduling system.
How do they connect? In most cases, through REST APIs: web services that allow one system to request or send information to another through HTTP requests (GET to query, POST to create, PUT/PATCH to update).
A simple example. The user types in their order number and the bot needs to check its status in the ERP:
GET https://api.yourcompany.com/v1/orders/58231
Authorization: Bearer <token>
And the ERP responds with something like:
{
"order": "58231",
"status": "in_transit",
"carrier": "Express Shipping",
"tracking": "ER-99812",
"estimated_date": "2026-10-02"
}
With that response, the bot tells the user: "Your order is on its way with Express Shipping (tracking ER-99812) and should arrive on October 2." Without anyone on the team having to open the ERP.
The most common validations that are solved through integrations are:
- Identity: does this number or document exist in the CRM? Is it an active customer?
- Availability: is there stock? Is there a slot in the calendar?
- Business rules: does the customer have overdue payments? Does the discount apply?
- Coverage: do we reach that city or postal code?
- Payments: did the payment gateway confirm the transaction?
And something many people forget: define what happens when a validation fails or the API does not respond. A good design includes clear error messages ("We couldn't find that order, could you check the number?"), retries and an alternative path to an advisor. A chatbot that goes silent because the ERP went down destroys trust faster than not having a chatbot at all.
Outputs: for the user and for the business
Every conversation should produce two types of output:
- For the user: an answer, a confirmation, a receipt, a payment link, a scheduled appointment.
- For the business: a record. A lead created in the CRM with its origin, an order in the ERP, a support ticket, an interest tag, a metric.
If the conversation ends and nothing was left in your systems, you lost half the value.
3. Brand personality: the bot is your brand too
The chatbot is often the first point of contact many customers have with your company. What it says, and how it says it, is your brand speaking.
Defining the bot's personality is not about giving it a cute name and an emoji. It is about documenting:
- Name and role: is it an assistant, a virtual advisor, the "support team"? Does it introduce itself as a bot? (Recommendation: yes, always be transparent about being an automated assistant.)
- Tone of voice: close or formal? Informal "you" or formal "you"? In Latin America this varies a lot depending on the country and the sector.
- Words it uses and words it avoids.
- Use of emojis: how many, which ones and at what moments (probably not when handling a complaint).
- How it handles user frustration: acknowledge it, apologize if appropriate and offer a solution or a human.
- Limits: which topics it does not discuss, what it never promises.
An example of the difference:
β "Invalid option. Select 1, 2 or 3."
β "Oops, I didn't understand that answer π . Could you help me by choosing one of the options below?"
Same process, same validation, completely different experience. A well-defined brand personality makes automation feel like service, not like paperwork.
4. Critical processes: the fewest clicks possible
Not all processes carry the same weight. Some are critical: the ones your customers use the most, the ones that move the most money or the ones that generate the most pain when they fail. Those must be at hand, with as little friction as possible.
How do you identify them? Review your current conversations (this is the understand stage from part 1) and answer:
- What are the 5 most frequent reasons people write to you?
- Which of those generate direct revenue (buying, paying, booking)?
- Which generate the most complaints when they take too long (order status, support, warranties)?
With that you build your critical processes menu. Some rules to reduce friction:
- A maximum of 3 to 5 options in the main menu. Everything else goes into submenus or is resolved with natural language.
- Intent shortcuts: if the user types "I want to pay" or "where is my order", the bot should go straight to that flow without going through the menu.
- Automatic identification: use the phone number to recognize the customer and preload their data.
- Direct links: a pre-filled payment link is one click; asking for card details in the chat is ten steps (and a security risk).
- Measure the steps: count how many messages a user needs to complete each critical process. If buying takes 14 messages, there is work to do.
A good design question: what is the shortest path between "hello" and "problem solved"?
5. Bringing users in: sales funnels with ads that end in the chat
An excellent chatbot without traffic is a beautiful store on an empty street. This is where the growth strategy comes in: using ads to bring users to the channel where your process is already automated.
Each advertising platform plays a different role in the funnel:
| Platform | Main strength | Typical use in the funnel |
|---|---|---|
| Meta Ads (Facebook, Instagram) | Targeting by interests and behavior; ads that open a conversation directly in WhatsApp, Messenger or Instagram | Discovery and conversation generation |
| Google Ads | Captures intent: the person is already searching for what you sell | Active demand, high-intent searches |
| Microsoft Advertising (formerly Bing Ads) | Searches on Bing and the Microsoft network; audiences that sometimes cost less than on Google | Search complement, especially in B2B and desktop |
| TikTok Ads | Massive reach and native short-video content | Discovery, young audiences, visual products |
| LinkedIn Ads | Targeting by job title, industry and company size | B2B, high-ticket services, decision makers |
The funnel connected to the chat
A basic funnel, designed to end in an automated conversation, looks like this:
- Attraction (TOFU): value-content ads on TikTok, Instagram or LinkedIn. The goal is not to sell yet, it is to get known.
- Consideration (MOFU): remarketing to those who interacted, with ads that invite a conversation: "Message us and we'll help you choose the right plan".
- Conversion (BOFU): search ads (Google, Microsoft) or click-to-WhatsApp ads with a concrete offer. The user arrives at the chat and the bot already knows which ad they came from.
- Automatic qualification: the bot asks 2 or 3 key questions (what they need, budget, urgency) and classifies the lead in the CRM.
- Closing: ready leads pass to an advisor with all the context, or buy directly in the chat if the process is simple.
What almost nobody does: closing the data loop
The secret of a funnel that scales is that the result of the chat goes back to the ad platform. If your chatbot records that a lead from a certain campaign bought, and that information goes back to Meta or Google (through their conversion APIs or integrations with your CRM), the platforms learn to find more people like them.
Without that data, you optimize for "conversations started". With it, you optimize for sales. It is a huge difference in cost per customer and, once again, in cash flow.
For that you need to tag the origin of every conversation (UTM, ad parameters or the identifier provided by the platform) and store it in the CRM from the very first message.
6. Automating the entire customer lifecycle
This is where everything comes together. The goal is not to automate "the chatbot"; it is to automate as many processes as possible across the entire customer lifecycle, because that is what allows us to consistently be the best option for the user.
Let's look at each stage, with the process, the automation and the system involved:
Stage 1: Lead generation
- Process: capture interest and register it.
- Automation: ad β conversation β the bot captures name, need and origin β the lead is created in the CRM with its campaign.
- Metric: cost per lead, rate of conversations started.
Stage 2: Qualification
- Process: separate the curious from the buyers.
- Automation: key questions, lead scoring and automatic assignment to the right advisor based on region, product or account size.
- Metric: % of qualified leads, time to first response.
Stage 3: Nurturing
- Process: accompany those who are not ready to buy yet.
- Automation: message sequences with useful content, reminders and offers, via WhatsApp (with approved templates and the user's consent) or email.
- Metric: reactivation rate, progress through the funnel.
Stage 4: Sale
- Process: close the purchase with the least friction.
- Automation: catalog in the chat, cart, inventory validation via API, payment link, confirmation and order creation in the ERP.
- Metric: conversion rate, average order value, messages until purchase.
Stage 5: Onboarding and delivery
- Process: the customer receives what they bought and knows how to use it.
- Automation: order status notifications, shipping tracking, welcome messages, tutorials or usage instructions.
- Metric: "where is my order?" inquiries (they should go down).
Stage 6: After-sales and support
- Process: resolve questions, exchanges, warranties and complaints.
- Automation: FAQs answered by the bot, automatic ticket creation, status checks, escalation to a human with the full history.
- Metric: resolution time, % of cases resolved without a human, satisfaction (CSAT).
Stage 7: Loyalty
- Process: make the customer come back and recommend you.
- Automation: satisfaction surveys (NPS) when closing a case, repurchase reminders based on the product cycle, tenure benefits, points or referral programs, congratulations on special dates.
- Metric: repurchase rate, customer lifetime value (LTV), referrals generated.
Stage 8: Reactivation
- Process: win back those who left.
- Automation: detect in the CRM customers with no purchases in X days and send them a personalized campaign; or include them in remarketing audiences.
- Metric: % of recovered customers.
Notice something: each stage feeds the next one with data. The lead brings its origin, the sale brings its product, after-sales brings its satisfaction, and all of that goes back to the ads to attract better leads. That is a system, not a set of loose tools.
7. Where should you build all this? My recommendation: HiBot
Everything above sounds great on paper, but at some point it has to become real (remember part 1?). And here a practical question comes up: on which platform do I build these processes?
If you work at a mid-sized or large company, my recommendation is HiBot, a platform designed to automate sales and customer service on WhatsApp and other chat channels, combining chatbots, AI agents and people in one place.
Why does it fit with everything we covered in this article?
- Omnichannel inbox: conversations from WhatsApp and other channels arrive in a single inbox, so your team doesn't jump between apps.
- Chatbots and AI agents: you can build the flows of your critical processes (menus, data capture, validations) and add AI agents that understand natural language to handle the repetitive work.
- Bots and humans working together: when a case needs judgment, the conversation passes to an advisor with all the context. That is exactly the "there must always be an exit to a human" we talked about.
- CRM for WhatsApp: every conversation is recorded, which lets you follow the customer through their entire lifecycle, from lead to after-sales.
- Integrations: processes can connect with the company's systems (CRM, ERP, databases) so that validations and outputs actually happen, not just inside the chat.
- Enterprise grade: it is designed for operations with teams of advisors, high conversation volumes and processes that have to work every single day.
My advice: before you get into the platform, bring your process already understood, defined and improved. Show up with your critical processes, your inputs, validations and outputs, and your brand personality in writing. That way the implementation moves much faster and the results show from day one.
Transparency note: I work at HiBot as an implementation consultant, so I know the platform from the inside. I recommend it because it is the tool I use to build this type of process every day.
8. Checklist: is your chatbot ready to scale?
Before launching or redesigning your chatbot, check:
- Have I identified my 3 to 5 critical processes?
- Does each process have its inputs, validations and outputs defined?
- Do I know which API or system (CRM, ERP, payments, scheduling) each validation needs?
- Have I defined what happens when a validation fails or a system doesn't respond?
- Does the bot have a documented brand personality?
- Can the user reach a human at any moment?
- Does every conversation leave a record in the CRM with its origin?
- Do sales results go back to my ad platforms?
- Do I have automated processes for after-sales and loyalty, not just for selling?
- Am I measuring every stage of the lifecycle?
If you answered no to several, don't worry: nobody starts with everything done. Start with one critical process, walk it through the four stages from part 1 and keep adding.
Conclusion: automate to be the best option
Digital transformation applied to chatbots is not about having a bot. It is about designing a system that attracts the right people, serves them fast, solves their problems without friction, supports them after the purchase and invites them to come back.
The chatbot is the front door; the APIs are the pipes that connect it to the business; the brand personality is how it feels; the ads are the traffic, and the customer lifecycle is the complete map.
When all of that is defined, materialized and automated, your team stops putting out fires and starts doing what no machine can do: think about how to be, every day, the best option for the user. And in the long run, that shows up in the cash flow.
Do you already have a chatbot in your business? Tell me in the comments which process you would most like to automate and which systems your company uses. In the next installment we can turn it into a real case.
Related Posts
Keep exploring similar content that may interest you

Digital transformation: taking a process to software
Digital transformation is not buying software: it is understanding, defining, improving and automating your processes so you can scale. A step-by-step method.

The Future of Team Management: Radical Transformation with AI and Remote Work
A deep analysis of how remote work and artificial intelligence are redefining team management, exploring opportunities, challenges, and the crucial role of human leadership in this new paradigm.

PMBOK 8th Edition: Key Principles, Domains, and Formulas
What the PMBOK is and what changed in the 8th edition: principles, performance domains, critical path, earned value (EVM) and risk analysis, with examples.
Partnerships
Tools I use every day, on better terms for this community.