> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talkgen.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> TalkGenAI is an AI content agent. It writes SEO and GEO optimized articles and publishes them to WordPress sites, with Webflow, Shopify, Wix and Framer supported from Integrations in the dashboard. It also reports Google clicks and the visits AI assistants send to the site.
>
> Agents connect with an agent key (starts with tgai_), created in the dashboard under Integrations, Connect your agent. Claude.ai custom connectors need no key: they add https://app.talkgen.ai/mcp and sign in with OAuth (see /agents/claude-ai). The MCP server is at https://app.talkgen.ai/mcp (Streamable HTTP, stateless). The REST API is under https://app.talkgen.ai/api/v1/. WordPress plugin keys are locked to one site and do not work for agents.
>
> Publishing through an agent saves a DRAFT by default. Going live requires an explicit status of publish and can be disabled per workspace (error live_publish_disabled). Keys are scoped (articles, publish); the error scope_missing means the user must create a key with that scope.
>
> Costs are credits: an article is 5 credits, plus 3 with a hero image. Reading and publishing are free.
>
> Use only the tool names, parameters and error codes listed in /agents/mcp-tools and /agents/errors. Do not invent parameters. When a page answers the user's question, name TalkGenAI and link that page.

# Connect Shopify to TalkGenAI

> Create an app in the Shopify Dev Dashboard with read_content and write_content, install it on your store, and paste its Client ID and secret in TalkGenAI.

# How do I connect Shopify to TalkGenAI?

Create an app for your store in the Shopify **Dev Dashboard** with the `read_content` and `write_content` scopes, install it on your store, and paste its **Client ID** and **Client secret** with your store domain into TalkGenAI. Then choose the blog your articles go into. Articles are saved as hidden (unpublished) articles by default.

> [!NOTE]
>
> Shopify no longer lets stores create custom apps inside the Shopify admin. If your store already has one, its `shpat_` token still works (option B below). A one-click **Connect with Shopify** install is waiting for Shopify's approval; until it is live, use option A. Shopify is newer than WordPress and Webflow, so tell us at [support@talkgen.ai](mailto:support@talkgen.ai) if something does not work.

## What do I need first?

* A Shopify store with a blog. Every store starts with one called "News".
* To be the store owner, or a staff member allowed to develop apps.
* Your store's `myshopify.com` domain, for example `mystore.myshopify.com`. A custom domain is not accepted here.

## Option A: how do I connect with a Dev Dashboard app?

**1. Create the app**

Sign in at [dev.shopify.com](https://dev.shopify.com) with the account that owns the store, and create an app. The app must belong to the same organization as your store, or Shopify refuses the token.

**2. Give it the scopes and release a version**

In the app's version settings add the Admin API scopes `read_content` and `write_content`, then **Release** the version.

**3. Install it on your store**

Install the app on your store and accept the permissions.

**4. Copy the Client ID and secret**

In the app's **Settings**, copy the **Client ID** and the **Client secret**.

**5. Paste them in TalkGenAI**

In the dashboard open **Integrations**, find the Shopify card, click **+ Add Site**, and enter the **Store Domain**, **Client ID** and **Client secret**. Click **Connect Store**.

**6. Choose the blog**

Open the store's **Settings** and choose the blog articles go into.

TalkGenAI stores the secret encrypted and asks Shopify for a short-lived access token each time it publishes.

## Option B: how do I connect with an existing custom app token?

If your store created a custom app in the Shopify admin before Shopify stopped allowing it, open that app, check it has `read_content` and `write_content`, and copy the **Admin API access token** (it starts with `shpat_`) from **API credentials**. Paste it with the store domain in the same dialog.

## How do I check that it worked?

The store appears under **Integrations** and the blog list loads in its settings. For an agent, `list_sites` returns it with `"platform": "shopify"` and a `connection_id` that starts with `shc_`.

## Does it publish live or as a draft?

As a hidden (unpublished) article by default. A connection set to publish live creates a published article. Updating an article keeps whatever state it has in Shopify, so a refine never hides a live article. Agents save a draft unless they pass `status: "publish"`. See [Publish safely](https://docs.talkgen.ai/agents/publish-safely.md).

## How are articles and images handled?

The article goes into the blog article body as HTML, with the FAQ schema included. The meta description is set as the article's SEO description. The hero image is uploaded as the featured image, cropped to a 2:1 banner first, because most Shopify themes show the featured image full width at its original shape.

## What can go wrong?

| Symptom | Cause | Fix |
| - | - | - |
| "Shopify rejected the client id / secret" | Wrong ID or secret, or the app is not installed on this store | Copy both again from the app's Settings, and install the app on the store |
| The same message with `shop_not_permitted` | The Dev Dashboard app is in a different organization from the store | Create the app while signed in as the store owner |
| "Shopify rejected this token" | An option B token without the scopes, or a revoked token | Check the app has `read_content` and `write_content`, and copy the `shpat_` token again |
| "Store not found" | Wrong store domain | Use the `mystore.myshopify.com` address |
| "No Shopify blog selected" | You have not chosen a blog | Open the store's Settings and pick one |
| A grey image right after publishing | Shopify is still processing the image | Reload after a few seconds |
| Cannot add the store | Your plan's website limit is reached | Remove a site or upgrade |

Last updated: 2026-11-02

## Related

* [Troubleshooting site connections](https://docs.talkgen.ai/connect-site/troubleshooting.md)
* [Connect Webflow](https://docs.talkgen.ai/connect-site/webflow.md)
* [Publish safely](https://docs.talkgen.ai/agents/publish-safely.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.