AI agent for WhatsApp and LINE: how it works and what the rules allow
What the official business APIs allow
An AI agent on a messaging app works through the platform's business interface, not through a personal account. On LINE, a business runs a LINE Official Account and connects it to the Messaging API, which sends each incoming message to your server as an event. On WhatsApp, the WhatsApp Business Platform does the same job through the Cloud API. Your agent receives the message, reads the customer's record, prepares a reply and sends it back through the same interface.
The official route matters for two reasons. The platform delivers and logs messages in a way your team can manage, and it can restrict an account that breaks its rules. Automating a personal phone or a personal LINE account may look like it works for a while, but it is the fastest way to lose the channel. Read the current developer documentation for each platform before you design around a feature.
Opt-in and template messages: who you may message first
Customers must agree before a business sends them marketing or updates. Keep a record of when and how each customer opted in, and let them opt out easily. An agent that messages numbers bought from a third-party list is not a customer-service tool. It breaks trust, and on WhatsApp it can lead to restrictions on the account.
WhatsApp separates the messages a customer starts from the messages a business starts. When a customer writes to you, you can reply freely inside the customer service window that opens at that moment. A message the business starts later usually has to use a template that the platform has reviewed and approved. Each template belongs to a category, and the category decides what you may send. Read the current rules in Meta's WhatsApp Business documentation before you draft any campaign.
LINE has its own message types and rules for official accounts, including how broadcasts and friend messages work. Check LINE's current official account guidelines before you plan a broadcast.
- Service replies: answers to a question the customer just asked, such as order status or opening hours.
- Transactional updates: a confirmation the customer expects, such as a booking or a delivery notice.
- Marketing: offers and news, which need explicit consent and the strictest template rules.
What the agent should answer, and what it should pass on
Good agents handle the repetitive questions completely and stop early on everything else. Start with a narrow scope: order status, opening hours, how to book, where a document is and what a product includes. Each answer should come from a source you control, such as your order system or a published price list, not from the model's memory.
- Answer from records: look up the order or booking and quote the status the system shows.
- Ask before changing anything: confirm a booking change with the customer before the agent writes it to your system.
- Hand over at once: complaints, refunds, legal questions, health matters and any message where the customer sounds upset.
- Say what it cannot do: an agent that admits a limit earns more trust than one that guesses.
How the handoff to a person should work
A handoff fails when the customer has to repeat everything to a staff member. Pass the full conversation, the customer's record and the reason for the transfer into the shared inbox at the same time, so the staff member sees the whole picture on one screen. Tell the customer that a person is taking over and what will happen next, without promising a time you cannot keep.
Decide in advance who answers the handoff queue, during which hours, and what happens outside those hours. An agent that hands over to an empty queue is worse than no agent at all. Test the handoff with staff before launch and track how often it fires. A rising handoff rate usually means the agent's scope is wrong, not that customers are difficult.
Mistakes people make with messaging agents
Most failures are predictable and avoidable. Check each one against your plan before launch, and test with real conversations rather than tidy examples.
- Using personal accounts or unofficial bots that the platform can ban.
- Messaging people who never opted in, or keeping no record of consent.
- Letting the model invent prices, stock levels or policies it was never given.
- Writing long replies that read badly on a phone screen.
- Testing only in English. Traditional Chinese, Simplified Chinese, mixed-language messages and emoji all need their own tests.
- Launching with no fallback. Decide what the customer sees when the model or the API is down.
How Hundred Seas helps
Hundred Seas is a product studio in Taipei. We build AI agents and AI CRM systems on Claude and on OpenAI models, and we choose the model for each task on cost, speed, quality and where the client's data has to stay. When an agent reads customer records or hands conversations to staff, we design the CRM side with it, so the person who takes over sees the same record the agent used.
Every project starts with a scope step, about one week at a fixed price, that ends in a written plan, a clickable prototype and a firm quote. The build then ships working software in weekly releases, and a monthly run plan keeps the agent current when platform policies change.
Questions
- Can an AI agent message customers on WhatsApp or LINE on its own?
- Yes, through the platform's official business interface, once the customer has opted in and each message type follows the platform's rules. Keep the agent to replies and updates the customer expects, and hand anything sensitive to a staff member. Check each platform's current policy before launch, because the rules change.
- Do I need an approved template to message a customer first?
- On WhatsApp, a business that starts a conversation outside the open service window usually needs a pre-approved template. Replies to a message the customer just sent are handled differently. Templates are reviewed, so draft them early and confirm the current category and approval steps in Meta's WhatsApp Business documentation.
- Is it safe to automate a personal LINE or WhatsApp account?
- It is risky. Scripts that run on personal accounts break the platforms' terms and can get the account suspended. Use the official business products instead. They are built for automated replies and give you logs, staff roles and a shared inbox.
- How should the agent hand a conversation to a staff member?
- Send the full transcript, the customer's record and the reason for the handoff into the shared inbox at the same time. Tell the customer that a person is taking over. Before you launch, agree who covers the queue and what happens outside working hours.
- Which languages can a WhatsApp or LINE agent handle?
- Current models handle Traditional Chinese, Simplified Chinese, English and common mixed-language messages, but accuracy varies by dialect and by topic. Test with real customer messages in each language, including typos and very short replies, before you agree on the scope.