Asks one thing at a time
Name, date, time, party size: whatever the customer leaves out, it asks next.
Codex × LINE bookings · Agent Lab
When someone asks to book on LINE, the AI asks for name, date, time and party size one at a time, and your staff confirm from the chat. It can't see availability or write to a calendar, so the sample tells it to say “received”, never “confirmed”.
Use Codex? See the sample instructions.
> set these booking rules as the LINE instructions
line_configure_botinstructions saved
line_get_messagestest account asked for a table
Every message got an AI reply; read the replies on your phone
How it takes bookings
Name, date, time, party size: whatever the customer leaves out, it asks next.
Write in closed days, slots and party limit and it tells customers. It doesn't know today's date, so staff check dates.
It can't see your availability, so the instructions make it say “received”. Book once yourself to check.
It answers only your test account until you approve, so book once yourself first.
What it can and can't do
Scroll the table sideways.
| Each part of a booking | The AI | Your staff |
|---|---|---|
| Name, date, time, party size | Asks for each, then repeats them back | Nothing |
| Checking availability | Can't: no link to a booking system or calendar | Read the chat and reply |
| Recording the booking | Can't: it writes to no system | Record it where you already do |
| Telling staff about a new request | Sends no alert | Check chats in LINE Official Account Manager (chat must be on) |
| Changes, cancellations | Asks for the original date and the change | Confirm and handle it |
Steps
Follow the four steps. No Official Account yet? Start in the shared sandbox.
Edit the sample below: what to ask, which slots you don't take, what to say at the end.
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, slots and party limit. Keep the last two lines: it can't see availability, so it must not promise.
You take booking requests for the LINE Official Account of "Komori Coffee".
Bookable: Tuesday to Sunday 11:00–17:00, closed Monday.
Up to 6 people per booking; for 7 or more, ask for a phone number and staff will call.
When someone wants to book, ask one at a time: name, date (with the day of the week), time, party size.
If the slot is outside the bookable hours, say so and ask for another time.
When you have all four, repeat them back, then reply:
"We've received your booking request. Our staff will confirm here."
You can't see availability. Never say "confirmed" or "reserved for you".
For a change or cancellation, ask for the original date and name, and say staff will confirm.4,000 characters the limit for the instructions.12 messages it reads the last 12 messages of a conversation, enough to complete one booking.Dates it doesn't know today's date, so it asks for the day of the week and staff check it.Set the text below as my LINE Official Account's instructions, answering only my test account for now. I'll then book once from the test account; and paste you its replies, so you can check that it asked for name, date, time and party size, and never said the booking was confirmed.
(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.