Calculadora COMEX Perú

Home / Digital business and AI / Module 4

4.2 Building an AI assistant for your business

An AI assistant is a tool set up for a specific job, with instructions, your own data and clear limits. Learn to build it, test it and supervise it before putting it in front of your customers.

Module 4: AI and automation · Reviewed on 12/10/2026 · Español

Goal: Build an AI assistant with instructions, a knowledge base and limits, test it with real questions and decide whether it meets your launch criterion.

An AI assistant is an AI program set up for a specific job in your business, for example answering questions about shipping. Unlike a blank chat, it already knows who it is, what data to use and what it must not do. It is built from three pieces: the instructions (role, tone and rules), a knowledge base (your documents: prices, delivery times, exchange policies and frequent questions) and, sometimes, connections to other tools, which you will see in topic 4-3. Many platforms let you create one without coding.

Start with a single, well-defined job: “answer questions about shipping and sizes” works better than “serve all customers.” Write the knowledge base as a short, organized fact sheet, with an update date. The assistant is only as good as its data: if the sheet has an old delivery time, it will repeat it confidently. And if the data is missing, it can hallucinate, that is, make up a false but convincing answer. That is why the key instruction is: “answer only from the base; if you can't find the information, say so and hand off to a person.”

Complete the instructions with clear limits: don't promise discounts, refunds or delivery times that aren't written down, and don't ask for DNI or card details. State when and how the case goes to a person, with hours. Write in simple sentences and add examples of good and bad replies. For complaints, the safest rule is to always hand off.

Test before launching. Gather 30 to 50 real questions from your chats, include the hard ones (cities you don't serve, damaged orders, discount requests) and rate each answer as correct, incomplete or wrong. Set your launch criterion in advance, for example 90% correct and none wrong on prices or delivery times. When you launch, say that it is a virtual assistant and always offer a way out to a person. After that, review a sample of conversations every week.

The responsibility is yours. In Peru, the Consumer Protection and Defense Code (Law 29571) recognizes the right to receive truthful and sufficient information: if your assistant gives wrong information, the customer will complain to your business, not to the tool provider. If it collects personal data, Law 29733 applies: say what you use the data for and ask only for what is needed. Also check the rules of the channel where you publish it (web, WhatsApp, social media), because each platform sets its own conditions for automated assistants.

Key ideas

PieceWhat it includesWhat happens if it's missing
Role and toneWho it is, whom it serves and how it talksLong, cold replies or replies that don't match your brand's style
Knowledge basePrices, delivery times, shipping coverage, exchanges and frequent questions, with a dateIt makes up data or repeats old information
LimitsWhat it never does: promise discounts, ask for DNI or card details, give opinions on unrelated topicsIt commits your business to promises you can't keep
Handoff to a personWhen the case is passed on, to whom and during what hoursThe customer gets stuck in the conversation
Testing and follow-up30 to 50 real questions before launch and a weekly reviewThe customer discovers the errors

Worked example

Aroma Selva: an assistant for shipping and grinds
  1. Aroma Selva (a fictitious company in Chanchamayo, Junín) sells whole-bean and ground coffee through its web store and WhatsApp. It gets 400 queries a month, almost all about shipping, grind types and subscription. It wants an assistant to handle them and hand off the rest.
  2. Define a single job: “answer questions about shipping, grind and subscription.” Complaints, order changes and discounts are left out: those go to a person from Monday to Saturday.
  3. Build the knowledge base in a dated sheet: prices per 250 g, 500 g and 1 kg bag; shipping to Lima in 2 to 3 business days for S/ 10; to the provinces in 4 to 7 business days for S/ 18; free shipping from S/ 120; grind types and how the subscription works (fictitious data).
  4. Write the instructions: role (“Aroma Selva assistant”), friendly and brief tone, answer only from the sheet, say “I don't have that information” and hand off when information is missing, don't promise discounts or refunds, don't ask for DNI or card details.
  5. Prepare 40 real questions from recent months, including the hard ones: “Do you deliver to Iquitos?”, “Can I get a discount for 5 kilos?”, “My order arrived broken.” Test and rate each answer. First round: 34 correct (85%), 4 incomplete and 2 wrong. One wrong answer made up a delivery time for Iquitos, which wasn't in the sheet: it was a hallucination.
  6. Fix it. Add a row for the Amazon region to the sheet and this rule: “if the city is not in the table, hand off to a person.” Also add an example of how to reply to a damaged order (a brief apology and a handoff). Second round with another 40 questions: 38 correct (95%), 2 incomplete and 0 wrong.
  7. Apply the criterion set in advance: launch with 90% or more correct and none wrong on prices, delivery times or costs. It passes (95% and 0 wrong). Launch with a notice (“I'm Aroma Selva's virtual assistant; if you prefer, I can connect you with a person”) and a button to talk to someone.
  8. Set up follow-up. Every week, review 20 random conversations and update the sheet when a price or delivery time changes. Goal for the first month: the assistant resolves 70% of queries without help: 400 × 0.70 = 280. At 3 minutes each, that is 840 minutes, or 14 hours freed up a month.

Result: After organizing the sheet and the rules, the assistant went from 85% to 95% correct answers and from 2 to 0 wrong ones; with the goal of 280 resolved queries, it would free up about 14 hours a month.

Real cases

A chatbot gives false information and the airline must pay

14/02/2024

On 14/02/2024, the Civil Resolution Tribunal of British Columbia (Canada) decided the case Moffatt v. Air Canada. The chatbot on the airline's website had told a passenger that he could request the bereavement fare after traveling, within 90 days, something the airline's policy did not allow. The tribunal found negligent misrepresentation and ordered payment of CAD 812.02 in damages, interest and tribunal fees. It did not accept that the company could avoid responsibility for what its chatbot said.

An assistant that speaks on behalf of your business commits your business: give it a verified base and review its answers.

Source: Civil Resolution Tribunal (Columbia Británica) – Moffatt v. Air Canada, 2024 BCCRT 149

OpenAI lets you create custom assistants without coding

06/11/2023

On 06/11/2023, OpenAI introduced GPTs, custom versions of ChatGPT that anyone can create without knowing how to code: you chat with the system to give it instructions and extra knowledge. It matters because it shows the basic method for an assistant for your business: a role, written rules and your own documents. Other AI platforms offer similar features.

Building an assistant means writing good instructions and gathering good documents: the quality of your base decides the quality of its answers.

Source: OpenAI – Introducing GPTs

Common mistakes

Practise with the calculators, the COMEX Simulator and the review questions on the main page.

Open this topic in the calculator →
← Previous topic: Automating tasks with AINext topic: Connecting tools and workflows →