All articles
Sales
Sales and leads10 min

Sales Scripts and AI: How to Train an Agent on Your Best Reps' Conversations

Your strongest salesperson rarely follows the script. What actually works is written down nowhere: when they ask about the need instead of quoting straight away, how they answer "let me think about it", the moment they suggest a call. When companies connect an AI agent, they tend to feed it the price list and an old script, and end up with a polite help desk that answers questions but never moves the customer forward. The real technique sits in chat histories and call recordings. This guide shows how to select those conversations, break them down into rules and examples, what you must never copy, and how to put the agent through an exam before it speaks to a single customer.

What "training" an agent actually means

The word is misleading. In most projects nobody retrains the model. Fine-tuning exists as a separate technical procedure, but this job rarely calls for it. Your team's experience reaches the agent through three layers, and each does different work.

LayerWhat goes inHow often it changesWithout it
InstructionsGoal of the conversation, order of steps, prohibitions, handover rulesRarely, after reviewing mistakesThe agent answers and stops
ExamplesSelected conversation fragments: a situation and a good replyNow and then, as you find better onesThe tone turns generic and machine-sounding
Knowledge basePrices, terms, lead times, product detailsWith every changeThe agent fills gaps with invented facts

This explains the most common mistake: dumping the entire chat archive into the agent and expecting it to learn. That archive mixes sharp replies with weak ones, old prices and promises that no longer apply. You get the average of your team, not the level of your best rep. Experience has to be selected and sorted into layers by hand.

Selecting conversations: pick the best talks, not the best rep

Top performers write weak replies when they are tired, and average reps sometimes find the perfect line. So the unit of selection is the conversation, and it qualifies when:

  • The outcome is confirmed in the CRM: a payment, booking or meeting, not a manager's impression.
  • The customer hesitated. If they arrived ready and simply paid, there is nothing to learn.
  • The terms are current. Same product, same rules as today.
  • There were no one-off deals, such as personal discounts or exceptions approved by the founder.
  • Several people are represented, so the agent does not inherit one person's quirks.

Next, check coverage. List the situations in your funnel and find three to five good fragments plus one or two bad ones for each: the opening price question, a comparison with a competitor, "let me think", a discount request, a question nobody can answer, a customer you are wrong for. The last two are the rarest in any archive and the ones the agent needs most, because that is where it starts making things up.

Read the lost deals too. If a technique shows up in both won and lost conversations, it probably is not what wins. That comparison shows correlation rather than proven cause, yet it stops you from teaching the agent an accidental habit. If you sell by phone, you need transcripts first; our article on AI sales call analysis covers how to get and label them.

Breaking a conversation down: situation, move, rule

A raw transcript explains very little to an agent. Ask the rep who wrote it what was happening and why it worked. Here is an invented example from a fictional interior fit-out studio in Dubai:

Customer: How much to renovate a two-bedroom flat?

Rep: Happy to help. Is this for you to live in or to rent out? The answer changes the materials we would suggest.

Customer: To rent out. I want it ready by March.

Rep: Then the deadline matters most. Is the flat empty now, and do you have the floor plan?

Customer: It's empty, I have the plan. But roughly how much?

Rep: For a rental package the range is [from the price list]. Send me the plan and I will narrow it down. Would a site visit on Tuesday or Thursday suit you better?

What the rep didRule for the agentWhere it goes
Acknowledged the question, asked one thing and explained whyWhen price is asked without context, ask one question about the goal and say why you need itInstructions
Gave the range when asked againNever delay the price a second timeInstructions
Built on the deadline the customer mentionedOpen recommendations with what the customer called importantExample
Closed with a concrete step and a choice of daysEnd every message after the price with a next stepInstructions and example
Quoted the rangeTake prices from the knowledge base onlyKnowledge base

The second rule is the one teams miss. Without it, an agent copying the first move keeps dodging the price, and the customer concludes something is being hidden. Usually only the author knows where a technique stops working, so do this breakdown together with them.

Store each finished example as a card with four fields: situation, what matters here, model reply, what to avoid. Anthropic's documentation recommends giving the model three to five diverse examples and notes that more tend to help on complex tasks. In practice, variety of situations beats ten versions of the same reply.

What must not be copied into the agent

A rep has authority, personal experience and a memory of the customer. The agent has none of these, so some winning moves become errors.

Found in conversationsThe dangerThe fix
Specific prices, dates, promotionsThey go stale and the agent repeats them as a model answerReplace with a "take from the base" marker
"I can do a special discount for you"The rep may have that authority; the agent does notRule: discounts are for a person, so hand over
"I use this one myself"The agent has no personal experience, so this is simply falseDelete and keep product facts
"Today only", "last slot"Pressure, plus the risk of a false claimMention deadlines only if they are in the base
Promises of resultsThe agent will repeat them to everyoneDescribe what is included instead
References to earlier talksThe agent cites something that never happened with this customerConnect the CRM or remove from the example

Before loading anything, strip names, phone numbers, addresses, card details and anything else that identifies a person. Customer chats are personal data, and using them to configure an agent should be covered by your stated purposes of processing. Rules differ by country, so check with your lawyer. For Uzbekistan, see our note on the personal data law and AI.

The exam before launch

Testing the agent on the conversations its examples came from proves nothing: it will score well without having learned anything. Set some real conversations aside in advance, keep them out of the configuration, and build 30 to 50 test situations from them. Then add some provocations:

  • a customer insists on a discount "your colleague promised";
  • a question the knowledge base cannot answer;
  • a message that mixes languages;
  • rudeness or a complaint;
  • a direct "Are you a bot?", which must get an honest answer;
  • a request unrelated to your product.

Have your strongest rep grade the replies, ideally without knowing which came from a person and which from the machine. Five questions per reply: are the facts right, is there a step towards the goal, did it use what the customer said, is the tone yours, did it hand over when it should? Every failure points to one layer: an invented fact means the base, a wrong tone means the examples, a wrong step means the instructions.

StageWho sees the agent's replyWhat must happen before moving on
ExamThe team onlyNo factual errors, failures reviewed
DraftsThe rep, who sends itMost drafts go out with light edits
One scenario on autopilotThe customer, with spot checks by a repNo complaints, handovers work
ExpansionThe customerThe next scenario clears the same stages

Set your own thresholds in advance, as no universal norm exists. Draft mode is covered in detail in AI reply suggestions for sales reps. Enforce the boundary between stages in code, not by agreement. We learned that first-hand when a component of our own automation bypassed an approval rule; the full story is in the case 42 messages sent without approval.

Keeping the agent sharp after launch

Rep edits during the draft stage are your most valuable material, because the gap between the draft and the sent message shows what the agent still misses. A simple routine is enough:

  1. One owner from sales, not only from IT, who can tell a good reply from a bad one.
  2. A regular review every two weeks of handed-over conversations and lost deals.
  3. One change at a time, or you will not know what worked.
  4. A repeat exam after each instruction change, since a new rule can break old behaviour.
  5. Fresh examples when the product shifts or a new objection appears, with outdated ones removed.

Keep expectations realistic. An agent reproduces recurring situations well and does not get tired, but long negotiations, unusual deals and relationship-driven conversations stay with people. More on the funnel is in our sales section, and our AI agents page explains how we build this around your channels and CRM.

FAQ

How many conversations do I need to start?

As a guideline rather than a rule: a few dozen well-chosen conversations per scenario, plus a held-back set for the exam. Covering every typical situation in that scenario matters more than volume. Start with one scenario, not the whole funnel.

What if we have almost no chat history?

Ask your best rep to dictate replies to the ten most frequent questions and objections, or role-play them with a manager. This is weaker than real conversations, because people describe an ideal version of their work, but it is enough to begin. Real examples will arrive during the draft stage.

We sell in English and Arabic. Do we need examples in both?

Yes, ideally real conversations in each language. Translation carries the meaning but not the manner: forms of address, formality, familiar turns of phrase. Test each language separately in the exam.

Our top rep will not want to share their techniques. What now?

That worry is reasonable, so address it directly. Explain which scenarios go to the agent and which stay with people, and show the upside: routine questions stop eating into time for complex deals. Treat the expert and examiner role as real work, not an extra on top of quota.

What does it cost?

It depends on the volume and condition of your data, the number of scenarios, channels and your CRM. The first conversation exists to work that out.

Subscribe to AI Insights

Case studies, tips and AI automation trends — weekly

Want similar results?

Get a free consultation and ROI calculation for your company

Free Consultation

Related Articles

Sales

Upselling and Cross-Selling: How AI Suggests the Right Product Mid-Conversation Without Pushing It

An upsell only works if it lands at the right moment in the conversation. Here is how an AI agent decides when to suggest an add-on, what it says, and where the line with pushing sits.

Sales

From First Question to an Office Visit: How an AI Agent Gets a Lead Through Your Door

The chat went well, the lead promised to come by — and never did. We walk the path from the first message to a face-to-face meeting: when to invite, what to send, who to brief.

Sales

Repeat Sales on the Consumption Cycle: How AI Reminds Customers to Reorder Before They Run Out

Pet food, water, filters, lenses, servicing: the customer will buy again. The question is whether from you or from whoever reminds them first. Cycle maths, timing and sample dialogues.

Sales

Why Leads Leak: How to Audit Your Sales Funnel in a Single Day

An hour-by-hour plan: what data to pull, how to review 30 real leads, where leaks usually hide and how to turn findings into a short list of fixes.

Sales

The customer record after a conversation: how to set up your CRM so AI fills it in and the rep only confirms

Why reps skip CRM updates and how to restructure the record so AI fills it after a call, meeting or chat while a person only reviews it.

Sales

AI in Long-Cycle B2B Sales: Keeping Context Alive Through Months of Negotiation

The deal runs for six months, five people sit on the buyer's side, and only one rep remembers it all. Which part of that memory and routine can go to AI, and what it must never touch.

Train an AI Sales Agent on Your Best Conversations | UNIKA