Shopify Integration Using MCP Server
This tutorial explains how to connect a Shopify store to a Tiledesk AI Agent using Shopify Storefront MCP.
With this setup, your AI Agent can access storefront tools to support ecommerce conversations. It can help users search products, receive product recommendations, add selected items to the cart and continue to checkout.

What this workflow does
At the end of this guide, you will have a Tiledesk AI Agent connected to your Shopify store through MCP.
The AI Agent can help customers:
search your Shopify catalog in natural language
receive product suggestions based on their needs
compare a small set of relevant products
add a selected product to the cart
receive a checkout link to complete the purchase
Start faster with the Shopify AI Sales Advisor template
We also published a ready-to-use Shopify AI Sales Advisor template in the Tiledesk Community.
If you use the template, the flow and prompt are already prepared. You only need to get your Shopify MCP server URL in Step 1 and add your store domain to the template configuration.
You can follow this tutorial in two ways: watch the video for a quick walkthrough or use the written guide below to follow each step in detail.
Build your Shopify AI Agent in less than 5 minutes
Step‑by‑step guide to building your Shopify AI agent
Get your Shopify MCP server URL
Shopify exposes a native MCP server for storefront actions. Your MCP server URL is your Shopify store domain plus /api/mcp.
Example with a custom domain
If your store uses a custom domain like:
Your MCP server URL is:
Example with a Shopify domain
If your store is:
Your MCP server URL is:
Open your Tiledesk AI Agent
Go to your Tiledesk project and open Design Studio.
You can now choose one of two options:
Use the Shopify AI Sales Advisor template if you want to start from a ready flow.
Create a new AI Agent from scratch if you want to build and customize the workflow manually.
If you use the template, you can skip the manual prompt setup and move directly to the MCP configuration inside the template.
If you create the AI Agent from scratch, continue with the next step.
Add the AI Prompt action
Open the block where the AI Agent should respond to open user questions and add an AI Prompt (Multi-LLM)action in it.
In many flows, this is the defaultFallback block.

Click on the block.
Wait for the right-side configuration panel to open.
Paste the prompt below in the prompt field.
Prompt example for a Shopify AI Sales Advisor
Prompt note: this prompt is only a starting point. You can adapt it to your business needs, product categories, tone of voice, shipping rules, return rules, or sales policies.
Add Shopify MCP as a tool
Inside the AI Prompt configuration, connect your Shopify MCP server as a tool.

Click Select MCP tools.
Click Add MCP server tool.
Paste your Shopify MCP server URL in the URL field.
Give the MCP server a clear name, for example Shopify Storefront MCP.
Click Connect.
After the connection is created, a blue button labeled Select tools should appear.

Select the Shopify tools
Click Select tools and enable the available Shopify MCP tools.
Toggle on the tools you want the AI Agent to use, then click Close.

Please ensure that the MCP server is included in the list of available tools.

Also, add a new Reply Action with an ai-reply attribute in it.
Test the AI Agent
You can test the flow directly inside Tiledesk Design Studio before publishing it.
Open the preview and ask questions based on the products available in your Shopify store. For example:
I am looking for a gift under 50 euros
Can you recommend a product for a new parent?
Show me your best products for summer
Add the second product to my cart

During the test, check that the AI Agent can read the available store information, recommend relevant products and guide the user toward checkout.
If you want to change the behavior, update the prompt in the AI Prompt action and test again.
This AI Agent does not only answer questions. It can guide customers through product discovery, product selection, cart updates and checkout.
You can contact us at [email protected] or visit www.tiledesk.com to learn more about Tiledesk AI Agents.
Last updated