AI integration (MCP) can now look up the customer linked to a LINE user ID
- Published
- App version
- v0.2.77
AI tools such as Claude Code and Codex can now look up which of your customers is linked to a LINE account, using its LINE user ID. Tokens now also expire 90 days after they were last used.

AI integration (MCP) has a new tool that looks up the customer of your shop linked to a LINE account, using its LINE user ID. If your shop handles LINE inquiries with AI, the AI can check whether the person who contacted you is a linked customer from their LINE user ID alone.
Also, AI integration tokens now expire “90 days after they were last used” instead of “90 days after issue”.
💡 This tool only reads. AI cannot change or remove links. As before, AI cannot send campaigns.
What changed
A tool that looks up links from a LINE user ID
When AI passes a LINE user ID (a 33-character value starting with U), JustFlow for LINE returns:
- Whether any customer is linked to that LINE account
- If so, the Shopify customer ID (a number) of the customer who linked most recently
- The number of customers linked to that LINE account (counted up to 50)
It does not return names, email addresses, orders or the date of the link. If names or orders are needed, the AI looks them up in your Shopify store with this customer ID.
For example, you can ask the AI:
- “Is the person with this LINE user ID linked to one of our customers?”
- “Find the customer linked to this LINE user ID, and check that customer’s recent orders in Shopify” (to look up orders, your AI tool needs to be able to read Shopify)
Token expiration
Until now, AI integration tokens stopped working 90 days after issue and could not be extended. From now on, each day a token is used, its expiration moves to 90 days after that day.
- A token you use almost every day keeps being extended before it expires.
- A token that is not used for 90 days in a row stops working, as before. When that happens, issue a new one.
- In the token list on the Settings screen, you can check each token’s “Expires” and “Last used” dates.
How to use it
- In the app’s “Settings”, issue a token under “AI integration (MCP)” and connect your AI tool. The steps are in the AI integration (MCP) article. If you are already connected, you can use it as is.
- Give the AI the LINE user ID of the person you want to check, and ask it to look up the linked customer.
- With the customer ID the AI returns, check the customer’s details in Shopify as needed.
Notes
- “Linked” means there is a record that the LINE account linked with a customer of your shop. It does not show that LINE messages reach the person (that they have not blocked your official account).
- The LINE user ID matches only if it comes from the same provider as JustFlow for LINE’s LINE Login channel. A LINE user ID from another provider is not found, even if the person is linked.
- When several customers are linked to the same LINE account, the count is 2 or more, and the ID of the customer who linked most recently is returned.
- Even if the customer was deleted in Shopify, the customer ID is returned while JustFlow for LINE still has the link record.
- There is no setting to limit which tools a token can use. A token you use for this tool can also create campaign drafts (it cannot send).
- JustFlow for LINE’s logs do not keep the LINE user ID passed in or the customer ID returned. This handling is described in the privacy policy.
- If a token may have leaked, you can disable it right away with “Revoke” on the Settings screen. Other AI integration rules, such as the limits on the number of requests, stay the same.