Crescendo Lab

Codex × LINE customer service · Agent Lab

LINE auto-reply
set up from Codex.

Write your opening hours, address, prices and return rules as one block of instructions, and the AI answers your LINE Official Account from them. It answers only your test account until you approve, so you can ask it everything first.

Use Codex? See the sample instructions.

How it answers

It answers from what you wrote

Answers from your instructions

Hours, address, prices, rules: write them in and it answers. Up to 4,000 characters.

Says when it doesn't know

It is told to say so rather than guess. It can still get one wrong, so test it first.

Remembers the chat so far

Within one conversation it reads the last few messages, so people don't start over.

Changes apply at once

Tell Codex which line to change; the next message follows it, with no redeploy.

What it can and can't do

What the AI answers, and what stays with a person

Scroll the table sideways.

In LINE customer service auto-reply: what the AI does and what a person does
What people askThe AIA person
Hours, address, pricesAnswers from the instructionsHas Codex update them when they change
Anything not in the instructionsTold to say it isn't sure, not to guessReads the chats and adds what comes up often
Order or stock lookupsCan't: it doesn't connect to your systemsLooks it up and replies
Refunds, complaintsAsks for the order number and reason, as instructedTakes over
Photos, stickersNo reply; text messages onlyReplies

Steps

LINE customer service auto-reply in four steps

  1. Connect LINE from Codex

    Follow the four steps. No Official Account yet? Start in the shared sandbox.

  2. Write the common questions down

    Edit the sample below for your shop: who it is, what it knows, what it must not say.

  3. Have Codex set them

    Paste the instructions to Codex. It updates them and the next message follows.

  4. Test, then approve

    Ask from your test account the way a customer would, and fix what it gets wrong. Then approve answering every friend.

Sample

Sample instructions and prompt

Swap in your name, hours and prices. The more specific, the better it answers; what you leave out, it can't answer well.

Edit and use

Sample instructions

You answer the LINE Official Account of "Komori Coffee".

Hours: Tuesday to Sunday 10:00–18:00, closed Monday.
Address: 12 Example Road, Da'an, Taipei; 3 minutes from MRT exit 2.
Prices: pour-over from NT$160, latte NT$140, desserts from NT$90.
Payment: cash, card, LINE Pay. Takeaway yes, delivery no.
Returns: unopened beans within 7 days.

Don't guess. If you don't know, reply: "I'm not sure about this one. Please call 02-1234-5678 during opening hours."
Never quote a price or offer that isn't written here.
For refunds or complaints, ask for the order number and the reason.
  • 4,000 characters the limit for the instructions.
  • Plain text LINE doesn't render Markdown; it replies in short plain text.
Prompt

Then say this to Codex

Set the text below as my LINE Official Account's instructions, answering only my test account for now. I'll then ask a few questions from the test account and paste you the ones it got wrong, so you can fix the instructions.

(paste your instructions)

When it doesn't work

What went wrong, and what to do

Scroll the table sideways.

Common problems when connecting LINE from Codex, their cause and the fix
What you seeWhyWhat to do
Codex has no line_ toolsThe setup was added while Codex was running, or the token variable is empty.Check that LINE_AGENT_SDK_TOKEN is set in the same shell, then restart Codex.
Codex can't connect: 401The agent token is missing, wrong or revoked.Create a new one on the panel's Agent tokens page and put it in the variable.
Codex can't connect: 503The service isn't set up yet: a required variable such as GOOGLE_CLIENT_ID is missing.Add it in the project's settings and restart the service. Settings →
It says the connection isn't live yetA step is still waiting, usually for you: entering the channel or turning on Use webhook.Ask Codex whose turn it is. It reads the progress and gives you the link for that step.
People get two repliesThe Official Account's own auto-response is still on.LINE Official Account Manager › Settings › Response settings › turn auto-response off.
It replies “Agent 收到…” instead of an answerNo model key is set, so it sends a fixed text.Add AGENTLAB_GATEWAY_KEY in the project's settings and restart the service.
Only I get answersBy design: it answers your paired test account until you approve every friend.Ask Codex to request going live, then approve it signed in. An account that forwards to an existing system can't answer every friend.
No reply to a photo or stickerIt answers text messages only.A person replies to those for now.

FAQ

LINE auto-reply with Codex: questions

Can Codex make a LINE Official Account reply to customers automatically?
Yes. Once Codex is connected to LINE OA MCP, give it your common questions as instructions and the AI replies to text messages from them. It answers only your test account until you approve every friend, signed in. Connect LINE from Codex →
Can the AI look up a customer's order?
Not today. It answers from your instructions and the current conversation, and doesn't connect to an order system or database. For order questions, have the instructions ask for the order number, and a person looks it up.
What happens when the AI can't answer?
It is told to say it isn't sure rather than guess, and you can write what it should say then; it can still get one wrong, and it doesn't alert your staff. Codex can read what the test account asked but not what the AI replied, so read the replies on your phone.
Can a person reply on LINE at the same time?
Yes. With chat turned on for the Official Account, a person can reply in LINE Official Account Manager and the AI's replies sit alongside. The AI can't see what the person wrote; to pause it, ask Codex to turn AI replies off.
Will the AI see my Channel Secret?
No. The Channel ID and Secret are entered on the service's own page, and the AI tool only gets an agent token from an environment variable. Never paste a secret into the chat. LINE OA MCP tools →
Can I try it without a LINE Official Account?
Yes. A shared sandbox gives you a join code: add it as a friend, send the code, and your AI answers you there. Creating a real Official Account is done by you in LINE Official Account Manager; LINE offers no API for it.
Do AI replies count toward LINE's message quota?
Under LINE's Official Account plans, replies to a user don't count toward the monthly message count; only push messages do. The agent replies by default and pushes only when the reply window has passed.

Sign up free,
or have us connect it.

  • What the AI should answer: opening hours, common questions, bookings
  • Whether you already have a LINE Official Account
  • When you would like it live

Use Codex? Connect it yourself in four steps

Have us connect your LINE OA

Optional, helps us schedule faster