YallaHelp Centre

Train an agent from your past chats

Teach your agent how your team really answers. Pick past WhatsApp chats when you create the agent, or import WhatsApp chat exports later, and approve what it learns.

Owners and adminsChecked against Yalla on 4 Dec 2026

When you create an agent you choose what it should know: your website, your past WhatsApp chats, or one sentence; and later you can import WhatsApp chat exports so it learns how your team writes.

What it does for you

An agent that copies your team's real answers sounds like your business, not like a robot. Past chats teach it your tone and the answers you give again and again. You see what it learned and approve it before it changes anything.

Steps

  1. In the left menu, click Agents (if you don't see it, look for Bots), then click New Agent. Choose the agent's job, click Next, choose who takes over, click Next. On the last step, type a name and pick where the agent answers. Under What should the agent know? you see three choices:
    The three choices under What should the agent know
    • Your website: reads your pages and common questions. Type your website address.
    • Past WhatsApp chats: learns your answers and your tone.
    • Say it in a sentence: type one line about your business.
  2. To teach it from chats, choose Past WhatsApp chats.
    Past WhatsApp chats chosen
  3. Click Choose files and pick your WhatsApp chat exports (.txt from Android, .zip from iPhone). Yalla reads them in your browser and shows how many chats it read. Under Which name is your team?, check that your business's name is chosen. Then click Create followed by your agent's name, and the agent reads your chats as it is set up.
    The Choose files button
  4. To train an agent you already have, open it and click Guidance, then click Basics.
    The Basics row on the Guidance page
  5. Click Sounds like.
    The Sounds like row
  6. Scroll to Import chats from WhatsApp and click Choose files. Pick your exports. Check Which name is your team?, look at the sample of your team's messages to be sure it is the right side, then click Learn from N chats.
    The Import chats from WhatsApp box with Choose files

How to export a chat from WhatsApp

Do this on the phone your team uses: open a chat with a lead, tap the menu, then Export chat and Without media. Pick chats that went well, in each language you use.

What happens next

After you pick files, Yalla shows how many chats it read, how many messages came from your team and from leads, and what it left out, such as group chats, photos and voice notes.

After you click Learn from N chats, you see Imported N chats. Review what was learned below, then approve it. Nothing changes until you approve it with Approve and use (or Approve changes if you approved a version before).

Common questions

Are my customers' names and numbers kept?

No. Names, phone numbers, emails and ID numbers are removed before the chats are saved, and the files themselves are not kept. What it learns is used for this agent only.

What does it leave out?

Group chats, chats without your team, chats with only your team, photos, voice notes and files, and system or deleted messages. The screen tells you how many of each it left out.

It says there is not enough to learn from.

Add more chats that include your team's replies and import them again. Use Add more files to add to the ones you already picked.

Good to know

  • If your line already has chats in Yalla, the chats choice offers to use those instead of uploading files.
  • Learn how to review the result in Test your agent before it goes live.