On this page
Writing key
Every scheduled run needs one language-model key. Pick OpenAI or xAI — not both, unless you want to switch later.
- OpenAI: create an API key at platform.openai.com/api-keys. You need a Platform account (this is not ChatGPT Plus). Billing must be enabled on the project or requests will fail.
- xAI: create an API key at console.x.ai.
Copy the secret once and store it somewhere safe. In WordPress it goes in OpenAI API Key or xAI API Key, and you set the matching provider.
Product search
Skip this section if you are not running an affiliate program and do not need the runner to find products.
If you are, we recommend both Google Programmable Search and SerpAPI. Google is better at staying on a merchant you care about. SerpAPI covers the gaps. You do not need Brave.
Google is two values, not one: a Search Engine ID (sometimes called CX) and a Custom Search JSON API key. Creating only the search engine is the step most people stop at — the JSON API is what AutoPress actually calls.
Google Programmable Search
1. Create the search engine
- Open the Programmable Search Engine control panel and sign in with Google.
- Click Add to create an engine.
- Give it a name you will recognize (for example “AgenticPress products”).
- Under what to search, turn on Search the entire web. If you only search your own site, we cannot find merchant product pages.
- Create the engine.
2. Copy the Search Engine ID
- Open that engine in the control panel.
- On Overview / Basics, copy Search engine ID. It looks like a long token, not a URL.
- That value is what the plugin calls
Google Search Engine ID.
3. Enable the Custom Search JSON API
- Open Google Cloud Console. Create a project if you do not have one (a name like “AgenticPress” is fine).
- Go to APIs & Services → Library.
- Search for Custom Search API and click Enable. The product name is Custom Search JSON API — that is the one.
4. Create the API key
- Go to APIs & Services → Credentials.
- Click Create credentials → API key.
- Copy the key. Optionally restrict it to the Custom Search API so it cannot be used for other Google products.
- That value is what the plugin calls
Google Search API Key.
Google’s free tier is modest (on the order of 100 queries per day). After that, Cloud billing must be enabled or search will start failing mid-run. Official overview: Custom Search JSON API.
SerpAPI
SerpAPI is the straightforward second source.
- Create an account at serpapi.com.
- Copy your API key from the dashboard.
- Paste it into
SerpAPI Keyin the plugin.
Their free plan is enough to try the product path. Paid plans raise the monthly search cap if affiliate volume grows.
Where these go
In WordPress: Settings → Agentic Press.
- Writing:
OpenAI API KeyorxAI API Key, plus the provider dropdown. - Search:
Google Search API Key,Google Search Engine ID, andSerpAPI Key.
The AgenticPress service API key from signup is separate — that only connects the plugin to your account. See the install guide for that step.