Scripts

How to write a script for an AI calling agent

By Anurag Maurya, Violetline · Updated · 3 min read

The short answer

An AI agent doesn’t read a script word for word. You give it an opening line, one clear goal, the facts it may use, the things it must never do, and how to end the call. Keep each part short and specific. The example at the end of this guide is a good starting point.

1. The opening line

The first ten seconds decide whether the person stays on the line. Say who you are, why you are calling, and that this is an AI call that is recorded. Then ask one easy question.

2. One clear goal

Write down what a successful call ends with: an appointment confirmed, a site visit booked, a payment date agreed, three qualifying answers collected. Give the agent one goal per call. If you have two goals, make two agents.

3. The facts it may use

List what the agent can say: prices, timings, address, offers, eligibility. Tell it to answer only from these facts, and to say “I’ll ask the team to confirm that” for anything else. This one instruction prevents most problems.

4. The limits

  • Never promise discounts, returns or results you can’t guarantee.
  • Never pressure, threaten or argue. If the person says no, thank them and end politely.
  • If they ask not to be called again, confirm that and end the call.
  • Don’t give medical, legal or financial advice.

5. Handling “call me later”

People are often busy. Tell the agent to ask what time suits them, wait for the answer, repeat it back, and only then end the call. In Violetline, that time becomes a scheduled callback automatically.

6. The ending

Summarise what was agreed in one sentence, thank them, and end. “Great, so we’ll see you Sunday at 11. Thank you!” A clear ending also makes the call summary accurate.

A complete example

You are a polite assistant calling for Acme Solar. Start with: “Hi, this is an AI assistant from Acme Solar, and this call is recorded. You asked about rooftop solar on our website. Do you have two minutes?”

Goal: find out whether it is for a home or a business, whether they own the property, their rough monthly electricity bill, and when they want it installed. Then offer a call from a consultant.

Facts: home systems start from ₹1.2 lakh before subsidy (example figure; use your own). Installation takes about two weeks after the site survey. The site survey is free.

Limits: don’t quote exact savings or subsidy amounts; say the consultant will calculate them. If they are not interested, thank them and end the call.

If they are busy: ask when to call back, confirm the time, then end.

Ending: confirm the next step in one sentence and thank them.

Test before you call anyone

Talk to your agent in the browser, then let it call your own phone. Play a difficult customer: interrupt, ask about something you didn’t include, say “call me tomorrow”. Fix the instructions until every test call goes well. Violetline includes ready-made templates for common calls to start from, and works in Hindi and Hinglish as well as English.

Questions

How long should the instructions be?

Long enough to cover the opening, goal, facts, limits and ending; usually a few hundred words. Very long instructions make the agent slower and less focused.

Can I write the instructions in Hindi?

Yes. Write them in Hindi, English or Hinglish. The agent speaks the language you choose and follows the caller if they switch.

How do I stop the agent from making things up?

Tell it to answer only from the facts you list and to say the team will confirm anything else. Then test it with questions you didn’t cover.

Hear an AI agent call your own phone.

Set one up in a few minutes. New accounts start with free minutes.

Start free