Answers from your instructions
Hours, address, prices, rules: write them in and it answers. Up to 4,000 characters.
Codex × LINE customer service · Agent Lab
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.
> set these common questions as the LINE instructions
line_configure_botinstructions saved
line_get_messagestest account asked 5 questions
All 5 got an AI reply; read the replies on your phone
How it answers
Hours, address, prices, rules: write them in and it answers. Up to 4,000 characters.
It is told to say so rather than guess. It can still get one wrong, so test it first.
Within one conversation it reads the last few messages, so people don't start over.
Tell Codex which line to change; the next message follows it, with no redeploy.
What it can and can't do
Scroll the table sideways.
| What people ask | The AI | A person |
|---|---|---|
| Hours, address, prices | Answers from the instructions | Has Codex update them when they change |
| Anything not in the instructions | Told to say it isn't sure, not to guess | Reads the chats and adds what comes up often |
| Order or stock lookups | Can't: it doesn't connect to your systems | Looks it up and replies |
| Refunds, complaints | Asks for the order number and reason, as instructed | Takes over |
| Photos, stickers | No reply; text messages only | Replies |
Steps
Follow the four steps. No Official Account yet? Start in the shared sandbox.
Edit the sample below for your shop: who it is, what it knows, what it must not say.
Paste the instructions to Codex. It updates them and the next message follows.
Ask from your test account the way a customer would, and fix what it gets wrong. Then approve answering every friend.
Sample
Swap in your name, hours and prices. The more specific, the better it answers; what you leave out, it can't answer well.
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.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
Scroll the table sideways.
| What you see | Why | What to do |
|---|---|---|
| Codex has no line_ tools | The 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: 401 | The 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: 503 | The 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 yet | A 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 replies | The 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 answer | No 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 answers | By 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 sticker | It answers text messages only. | A person replies to those for now. |
FAQ
Don't code? Tell us what you need and we'll connect your LINE OA:
Use Codex? Connect it yourself in four steps
We'll email you to confirm what you need and when to go live.