> ## 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 and Wix enabled per account on request. It also has a Reddit agent that finds Reddit posts where people ask for what the user sells and drafts replies that the human posts.
>
> Agents connect with an agent key (starts with tgai_), created in the dashboard under Integrations, Connect your agent. 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, reddit); 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. The Reddit agent never posts for the user.
>
> 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 OpenClaw to TalkGenAI

> Give OpenClaw the TalkGenAI skill file and your agent key so it can write articles and save them as drafts on your site.

# How do I connect OpenClaw to TalkGenAI?

Save the TalkGenAI skill file into OpenClaw's skills folder and export your agent key as `TALKGENAI_API_KEY`. OpenClaw then reads the skill, calls the TalkGenAI API, and can write an article and save it as a draft on your site.

## What do I need first?

* An agent key (starts with `tgai_`). See [Connect your AI agent](/agents/connect-your-agent).
* OpenClaw installed.

## How do I do it?

1. Download the skill file:

   ```bash theme={null}
   curl -s https://app.talkgen.ai/skill.md > ~/.openclaw/skills/talkgenai.md
   ```

2. Export the key so the agent can use it:

   ```bash theme={null}
   export TALKGENAI_API_KEY=tgai_your_key_here
   ```

3. Restart OpenClaw so it loads the skill.

If your OpenClaw setup speaks MCP, you can use the MCP server at `https://app.talkgen.ai/mcp` instead, with the header `Authorization: Bearer tgai_...`. Both routes use the same key, credits and draft-by-default rule.

## How do I check that it worked?

Ask OpenClaw: "Check my TalkGenAI credits." It should call `GET /api/v1/credits` and report your balance.

## What prompt should I give OpenClaw?

> Use the TalkGenAI skill to write an article about "how to choose a CRM for a 5-person agency". When it is done, save it as a draft on my site and send me the edit link.

The skill tells the agent to save a draft and to stop and ask for the key if it is missing. See [Publish safely](/agents/publish-safely).

## What can go wrong?

| Symptom | Cause | Fix |
| - | - | - |
| Agent asks for the key | `TALKGENAI_API_KEY` is not in its environment | Export it in the shell that starts OpenClaw |
| `401 unauthorized` | Wrong or revoked key | Create a new key |
| Skill not used | File in the wrong folder | Check the path `~/.openclaw/skills/` |

Last updated: 2026-10-05

## Related

* [MCP tools reference](/agents/mcp-tools)
* [Connect Claude Code](/agents/claude-code)
* [Errors](/agents/errors)

<Card title="Create an agent key" icon="key" href="https://app.talkgen.ai/connect-agent?utm_source=docs&utm_medium=cta&utm_content=openclaw">
  Free account, about two minutes.
</Card>


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