Blog

Send a LINE Official Account broadcast from ChatGPT or Claude, with the reach counted before it goes

Run your LINE Official Account from ChatGPT or Claude: read and answer chats, message one friend, and broadcast after a dry run that counts reach and checks your quota.

You can now run your LINE Official Account by talking to ChatGPT or Claude. Ask what came in today and answer it. Message one customer. Or send a broadcast to your friends, and before a single message goes out, LINE itself tells you how many people it will reach and how much of this month's quota is left.

Everything also works in the Hermoso app, where LINE chats sit in the same inbox as WhatsApp, Instagram and Messenger.

What you can ask for

You sayWhat happensTool
"Show me today's unanswered LINE chats"Every conversation, or one in fullread_line_inbox
"Reply to Ploy: yes, Saturday at 2 works"The answer, and whether it was LINE's free reply or a push messageread_line_inbox
"Send Ploy our new price list picture"Text, a picture or a video to one personsend_line_message
"Broadcast this to all our friends, dry run first"The reach and the quota left, then a send on your yessend_line_broadcast
"How much of this month's quota is left?"Your monthly limit and what's usedline_quota
"How many friends do we have?"Friend count, and whether LINE is sending messages to Hermosoline_account

Text, photos, videos, voice messages, files, stickers and locations all arrive, and a photo or file comes with a link. line_profile reads one person's name, picture and language when you want to greet them properly.

Three ways to broadcast

  • Broadcast: every friend of the account.
  • Multicast: a list of LINE user ids, up to 5,000 in one send.
  • Narrowcast: the friends who match a LINE audience or demographic filter. LINE needs the account to have at least 100 friends and at least 50 people to match.

A broadcast can't be recalled, and each person it reaches uses one message of your LINE quota. So it always runs in two steps. The dry run sends nothing and reads from LINE the number of people it reaches and what's left of your quota. The send then goes with that exact number confirmed. If the number changed in between, the send is refused and you're asked again.

When an answer is free

LINE gives every incoming message a reply pass that lasts about a minute. An answer inside that minute is LINE's free reply. After that it goes as a push message, which uses one message of your quota. Hermoso tells you which of the two each answer was, so you can watch the quota without opening LINE Official Account Manager.

A worked example: a hair salon in Bangkok

A hair salon has 2,300 friends on its LINE Official Account and a quiet Tuesday coming up. The owner, with Hermoso connected to ChatGPT, types:

Dry run a LINE broadcast to all our friends: "Tuesday only: 20% off any colour treatment. Reply to this message to book." Then tell me the reach and how much quota is left.

Nothing is sent. ChatGPT answers with the reach and quota LINE reported, say 2,284 friends and 5,600 messages left this month. The owner says "send it", and it goes with 2,284 confirmed.

Over the next hour forty people reply. They show up in the Hermoso inbox, and ChatGPT can read them too. The owner asks "Which LINE chats haven't I answered?", reads them in one list, and books them one by one: "Reply to Ploy: Tuesday 2pm is yours." Answers sent within a minute of a message use the free reply. The rest go as push messages, and each answer says which.

Set it up in the app

  1. In the LINE Developers console, copy the long-lived channel access token from the Messaging API tab (press Issue if there is none) and the channel secret from the Basic settings tab.
  2. In Hermoso, open Connectors, then the LINE card, and paste both. Connect LINE in Hermoso. Hermoso checks the token, points the channel's webhook at an address made for your connection and has LINE send a test message.
  3. On the Messaging API tab, turn on Use webhook.
  4. In LINE Official Account Manager, under Settings, Response settings, turn Webhooks on. Turn LINE's own auto-reply and greeting messages off, unless you want LINE to answer as well.

If another tool's webhook address is already on the channel, Hermoso leaves it alone and tells you. Tick the box to move the channel to Hermoso when you're ready.

Or ask ChatGPT or Claude

With Hermoso connected to ChatGPT or Claude, one sentence does it: Send our LINE friends the weekend menu photo with "Show this for a free drink", dry run first. The agent uses send_line_broadcast, send_line_message, read_line_inbox, line_quota, line_account and line_profile, plus list_inbox and reply_to_inbox_item when you want LINE alongside every other channel. Sending is always shown to you first.

Hermoso charges nothing for LINE. LINE counts push, multicast, broadcast and narrowcast messages against your own LINE plan.

More

The step-by-step guide with LINE's limits is run your LINE Official Account from one inbox. The channel overview is on the LINE page, and the release note is in the changelog. Setup for a chat takes a minute: Hermoso in ChatGPT or Hermoso in Claude.

Questions people ask

Can I send a LINE Official Account broadcast from ChatGPT?

Yes. Connect Hermoso to ChatGPT, ask for a dry run first, and it reports the reach and the quota left as LINE counts them. The broadcast sends when you confirm that number.

How does LINE Official Account count messages?

Push, multicast, broadcast and narrowcast messages count against your monthly quota on your LINE plan. A reply within about a minute of the person's message uses LINE's free reply.

Can I send a LINE message to a list of customers?

Yes. A multicast sends one message to a list of up to 5,000 LINE user ids. A narrowcast reaches the friends who match a LINE audience, once the account has at least 100 friends.

Does Hermoso keep LINE chat history?

Hermoso keeps what arrives for 7 days so you can read and answer it, then deletes it with any photo or file. LINE cannot hand a message back after delivering it.

Can Hermoso post to LINE VOOM?

No. LINE has no way for an app to publish posts, so LINE is a messaging channel in Hermoso: chats, replies and broadcasts.