Shopify (custom app)
Your assistant tells callers where their order is, answers questions about your products and takes care of returns, exchanges and cancellations, connected through your store's own custom app.
Once your Shopify store is connected, your assistant knows your shop like a colleague who knows the regulars. It recognises your customers by their phone number and already knows their latest orders when it picks up.
It tells callers where their parcel is and what a product costs. If you like, it also texts tracking and checkout links and takes care of returns, exchanges and cancellations right on the call.
This page is for stores that connect through a custom app of their own, with its access tokens. Connecting with a few clicks through the Shopify App Store is described on Shopify.
Only for custom apps you already have
Since 1 January 2026, Shopify no longer lets stores create new custom apps in the Shopify admin. Apps that already exist keep working. If your store has none yet, connect with Shopify instead.
Get your tokens from Shopify
In your Shopify admin, open Settings › Apps › Develop apps. Under Legacy custom apps, open your app. Only the store owner or a staff member allowed to develop apps can see this page.

On the Configuration tab, check the app's Admin API access scopes. Your assistant needs these to read your products, customers and orders:
read_customers, read_orders, read_products, read_publications, read_returns, read_merchant_managed_fulfillment_orders, read_assigned_fulfillment_orders, read_third_party_fulfillment_orders
A few more are only needed for what you switch on in step 3:
- read_all_orders for orders older than 60 days.
- write_returns for Return requests and Exchanges.
- write_orders for Cancellations.
If something is missing, click Edit, tick it, save and install the app again.
For Shopping, the app also needs Storefront API access scopes: unauthenticated_read_product_listings, unauthenticated_read_selling_plans, unauthenticated_read_checkouts and unauthenticated_write_checkouts.

Then open the API credentials tab. You'll need the Admin API access token, which starts with shpat_. Shopify reveals it only once, so take it from wherever it was saved back then. If you also want your assistant to take orders, copy the Storefront API access token from the same page.

Your store needs the Grow plan or higher. On smaller plans, Shopify keeps customer names and phone numbers from custom apps, so your assistant couldn't recognise anyone.
Connect Shopify to fonio
In your assistant, open Integrations, search for Shopify and add Shopify (custom app).

Next to Connection, click Connect.

Fill in the fields and click Connect.
-
Shop name
The name of your store before .myshopify.com. Your full store address or the address of your Shopify admin works too.
my-store -
Admin API access token
The token from the first step. It starts with shpat_.
shpat_… -
Storefront API access token
Optional. The second token from the first step, which your assistant needs for Shopping and for subscriptions. Leave it empty if callers shouldn't order by phone.
When you connect, we check right away that the token belongs to your store and that the app has the scopes your assistant always needs. If one is missing, the message names it.

Choose what your assistant may do
Open the Settings tab. You can change all of this at any time.

-
Name
On the General tab. A short name for this connection, which you'll find again in your call history. The default is Shopify (custom app).
-
Product questions
On by default. Your assistant answers questions about your products, prices, stock and sizes or colours.
-
Order questions
On by default. Your assistant tells callers where their orders stand: what's in them, how they're delivered, when they should arrive and how a return is going.
-
Load orders before the call
On by default. Your assistant already knows the caller's five most recent orders when it picks up, so it doesn't have to look them up first.
-
Order links
Off by default. Your assistant texts callers the tracking link of a shipped order or the label of an approved return.
-
Shopping
Off by default. Your assistant puts together a cart with the caller and texts them the checkout link. It needs the Storefront API access token.
-
Return requests
Off by default. Callers can ask to send items back. You approve or decline every return yourself in Shopify.
-
Exchanges
Off by default. Callers can swap an item for another size, colour or variant. The exchange is booked straight away, without your approval. You send the replacement once you process the return in Shopify.
-
Cancellations
Off by default. Callers can cancel an order that hasn't been packed or shipped yet and get their money back.
-
SMS sender name
The name callers see as the sender of your texts, at most 11 characters. The default is Fonio, so your shop's name works well here.
Lisas Shop
Links are sent by text
Tracking, return label and checkout links need SMS on your account. If you see SMS sending is disabled, buy an SMS package or switch on automatic add-on purchases under Subscription & Billing.
Before the call
When the phone rings, your assistant looks up the caller's number among your Shopify customers. It finds their five most recent orders, with what's in them, where they are and any returns.
So when Lisa calls about her trainers, your assistant already knows which order she means. She doesn't need an order number.
This happens while Order questions and Load orders before the call are on. With Product questions on, your assistant also learns your shop's collections, so it can tell callers what you carry.
Stays between you and your assistant
Your assistant keeps what it looked up to itself and only uses it for the caller on the line. It never reads out links or tracking numbers and offers to text them instead.
During the call
A caller asks where their parcel is. Your assistant tells them what they ordered, how it's being delivered and when it should arrive. With Order links on, it offers to text the tracking link.
Someone calls from another phone? Your assistant asks for the order number and the last name on the order. Then it tells them the status, but changes nothing on that order in this call.
Another caller wants to know whether you have the blue jumper in medium. Your assistant checks your shop for the real price, sizes and stock. It never guesses a price.
With Shopping on, it puts what the caller wants in a cart, tells them the total and asks if there's anything else. If you sell subscriptions, it can offer those, too. Then it texts the checkout link, and the caller pays in your usual Shopify checkout. Your assistant never takes payment over the phone.
A caller wants to send something back. With Return requests on, your assistant checks which items of the order can still be returned and asks why. It picks the matching return reason from your shop and notes the caller's own words. In Shopify, the return waits for you as a request. Your assistant tells the caller it's requested, never that it's approved. Once you've approved it and added a return label, your assistant can text the label with Order links on.
Exchanges work the same way. The caller says which size or colour they'd like instead, and your assistant checks that it's available. You'll find the exchange on the order in Shopify, already booked.
When a caller wants to cancel, your assistant names the order and waits for a clear yes. Shopify then cancels it, refunds the payment, puts the items back in stock and lets the customer know by email. If the order is already being packed or has shipped, your assistant offers a return instead.
Texts go to the number the caller is phoning from, unless they ask for another one.
Good to know
- Recognised by phone number: your assistant finds a caller's orders when their number is saved on their customer profile in Shopify. Someone calling from another phone gives the order number and last name and hears the status only.
- Withheld numbers: your assistant can't look up the caller's orders, but still answers questions about your products. It asks which mobile number to text a link to.
- What's for sale: your assistant only talks about active products that are published in your store.
- Older orders: without the scope read_all_orders, your assistant only sees orders from the last 60 days.
- Without the Storefront API access token, everything works except Shopping.
- Without SMS, your assistant still answers every question, but can't send links.
- Dates and amounts are told in your store's time zone and in the currency the customer paid in.
- Cancellations can't be undone. Leave Cancellations off if you'd rather check each one yourself.
- Your tokens: if you stop using the integration, uninstall the custom app in Shopify. Its tokens then stop working.
If something isn't working
| Message | What to check |
|---|---|
| Enter the name of your store before .myshopify.com, e.g. my-store. | Enter just the store name, as in my-store. |
| Shopify knows no store with this name. Enter the name before .myshopify.com. | Check the spelling. You'll find the name in your Shopify admin under Settings › General. |
| Shopify rejected this Admin API access token. Check the token and that the app is installed on this store. | Paste the Admin API access token in full, starting with shpat_. Is the app installed on the store you entered? |
| The app lacks these Admin API scopes: … | Add the scopes named in the message on the app's Configuration tab and install the app again. |
| Shopify rejected this Storefront API access token. Check it or leave the field empty. | Copy the Storefront API access token again from API credentials, or leave the field empty. |
| Shopify did not answer as expected: … | Try again in a few minutes. If it keeps happening, write to us. |
| SMS sending is disabled | Buy an SMS package or switch on automatic add-on purchases under Subscription & Billing. |
| Your assistant doesn't find a caller's orders | Is the caller's number saved on their customer profile in Shopify? Is your store on the Grow plan or higher? |
| Your assistant can't take an order | Is Shopping on, and did you add the Storefront API access token? |
| Your assistant offers a return instead of cancelling | The order is already being packed or has shipped, so it can only be returned. |
Need help?
Just write us at support@fonio.ai, we're happy to help.
