> ## 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 WordPress to TalkGenAI

> Install the free TalkGenAI plugin, generate a connection token in WordPress, and paste it in the dashboard. Articles then publish to your site as drafts.

# How do I connect WordPress to TalkGenAI?

Install the free TalkGenAI plugin, generate a connection token in WordPress, and paste the token with your site URL into the TalkGenAI dashboard. Once connected, articles publish to your WordPress site as drafts, with the hero image set as the featured image.

## What do I need first?

* A WordPress site served over **HTTPS**. Plain `http://` addresses are rejected.
* Admin access to the WordPress site.
* A TalkGenAI account and, depending on your plan, a free website slot. Each plan includes a set number of sites. See [Credits and plans](https://docs.talkgen.ai/get-started/credits-and-plans.md) and the [pricing page](https://app.talkgen.ai/pricing?utm_source=docs\&utm_medium=cta\&utm_content=wordpress).

## How do I connect with the plugin?

**1. Install the plugin**

In WordPress open **Plugins**, **Add New**, search for **TalkGenAI**, then install and activate it. It is also on [WordPress.org](https://wordpress.org/plugins/talkgenai/).

**2. Generate a token**

In your WordPress admin go to **TalkGenAI**, **Settings**, and click **Generate Connection Token**. Copy the token.

**3. Paste it in the dashboard**

In the TalkGenAI dashboard open **Integrations**, click **+ Add Site**, and choose **Connect via Plugin (Recommended)**. Enter your **Site URL** and the **Connection Token**. A site name is optional. Click **Connect Site**.

The token expires after **10 minutes** and works once. If it expired, generate a new one.

## How do I connect without the plugin token?

The **Application Password** tab in the same dialog is the older method. In WordPress go to **Users**, **Profile**, **Application Passwords**, enter any name and click **Add New Application Password**. Then enter your site name, site URL, WordPress username and the password. Some shared hosts block application passwords, which is why the plugin token is recommended.

## How do I check that it worked?

The site appears in **Integrations** with your site name. For an agent, `list_sites` (or `GET /api/v1/sites`) returns it with `"platform": "wordpress"`:

```json theme={null}
{
  "connection_id": "wpc_9f2c41d7a8b3e05c6d1f2a4b",
  "site_url": "https://example.com",
  "site_name": "Example Blog",
  "platform": "wordpress",
  "auth_method": "plugin_token"
}
```

## Does it publish live or as a draft?

As a draft. The publish dialog says: "The article will be saved as a draft on your WordPress site. You can review and publish it from the WordPress editor." A site can be switched to **Live (publish)** under **Integrations**, **WP Post Status**, and the dashboard then warns that articles go public immediately. Agents save a draft unless they pass `status: "publish"`. See [Publish safely](https://docs.talkgen.ai/agents/publish-safely.md).

## What does the plugin set on each post?

| Item | Where it goes |
| - | - |
| Article | The post content, with headings, lists, tables and links |
| Hero image | The featured image, with alt text |
| SEO title, meta description, focus keyphrase | Yoast SEO or Rank Math, when one of them is active |
| FAQ schema | Added to the page head as JSON-LD |
| Internal links | Picked from the page list the plugin sends to TalkGenAI, so links use your real permalinks |

Publishing the same article again updates the existing post instead of creating a second one.

## What can go wrong?

| Symptom | Cause | Fix |
| - | - | - |
| Token rejected | It expired or was already used | Generate a new token |
| Site URL rejected | The address uses `http://` | Use the `https://` address |
| Connects, then publishing fails with a challenge page | Cloudflare is blocking TalkGenAI | See [Troubleshooting](https://docs.talkgen.ai/connect-site/troubleshooting.md) |
| Cannot add the site | 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)
* [Publish safely](https://docs.talkgen.ai/agents/publish-safely.md)
* [Quickstart](https://docs.talkgen.ai/get-started/quickstart.md)

> [card] [Connect a site](https://app.talkgen.ai/dashboard?utm_source=docs\&utm_medium=cta\&utm_content=wordpress)
>
> Open the dashboard and add your WordPress site.


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