At a glance
- What you can do: give Semji’s agents controlled access to your WordPress content: posts, pages, and custom post types, with taxonomies, ACF fields, and SEO titles and meta descriptions (Yoast SEO, Rank Math, or SEOPress).
- Who it’s for: workspace owners and WordPress administrators.
- Compatibility: WordPress 5.6 and newer.
Prerequisites
- WordPress 5.6 or newer. Application passwords, which are used for the connection, have existed since this version.
- A live, public site served over HTTPS. A local or internal-network site cannot be connected.
- The WordPress REST API reachable. It’s on by default, but a security plugin may have disabled it.
- A WordPress account allowed to manage posts, Author role at minimum. Choose Editor if agents should be able to update posts written by others.
- If a firewall, WAF, or anti-bot protection (Cloudflare, Akamai, Sucuri, …) sits in front of your site, it must allow Semji’s IP addresses. See Firewalls, Cloudflare, and IP allowlisting.
- You are a workspace owner in Semji. The connection is shared with the whole workspace.
How to connect your WordPress site
Create an application password in WordPress
xxxx xxxx xxxx xxxx xxxx xxxx. Copy it right away. You can paste it into Semji with or without the spaces.Connect from Semji
-
Site URL: your site’s exact address over HTTPS, e.g.
https://your-site.com. Enter the address your site actually uses: if it switches from example.com to www.example.com, enter the www version. Semji does not follow redirects. - Email or username: the WordPress login or email address of the user who owns the application password. WordPress accepts either: it matches the username first, then falls back to the email address.
-
Application password: the one generated in the previous step.

GET /wp-json/wp/v2/users/me on your site with these credentials, and detects which SEO plugin your site runs.Pick the WordPress tools

Save

What Semji can do once connected
Supported SEO plugins
Semji detects your SEO plugin automatically. There is no provider to pick. Detection reads the namespaces advertised by your REST API index (/wp-json/), and falls back to inspecting the SEO fields exposed on your posts when a security plugin filters the index. The SEO title and meta description are then read and written through the detected plugin’s own fields:
Enable SEO title and meta description updates
Whether a prerequisite is needed depends on your SEO plugin and its version:- Yoast SEO 28.1 and newer: nothing to do. Recent Yoast versions expose their SEO title and meta description fields to the REST API out of the box, and Semji can update them right away.
- Older Yoast SEO, Rank Math, and SEOPress: these store the SEO title and meta description in protected custom fields that the REST API does not accept writes on by default. A small PHP snippet must register the fields with the REST API first.
edit_posts capability) can modify the fields. That is the same permission level as editing the post itself.
- From the WordPress admin
- On the server
Install the plugin
Create the snippet
Semji SEO fields REST support, and paste the code below. It starts without the opening <?php line, since Code Snippets adds it itself.Run it everywhere and activate
Verify the fields are exposed
Whichever option you chose, call your REST API with the same credentials Semji uses, on any post ID, checking your plugin’s meta description field (here Rank Math, swap in the field from the table above for Yoast SEO or SEOPress):""), means the field is exposed and Semji can update it. null means the code is not running yet.
Expose ACF fields to Semji
Many WordPress sites structure their content with Advanced Custom Fields (ACF), for example a FAQ custom post type whose question and answer live in dedicated fields rather than in the post body. Semji’s agents handle those fields natively: Read posts returns a post’s ACF values, and Create posts and Update posts fill them. This only works for fields visible through the REST API, and ACF does not expose field groups by default. Out of the box theacf key is absent from your site’s REST responses, so agents cannot see the fields, let alone fill them, and will tell you so during a publication.
Unlike the SEO fields above, no PHP snippet is needed: ACF (free and Pro, version 5.11 or newer) ships native REST API support behind a single setting. The Secure Custom Fields fork offers the same setting.
Enable “Show in REST API” on the field group
The setting lives on the field group, not on each individual field:Open the field group
Enable Show in REST API
Repeat for each field group
'show_in_rest' => true to register_post_type().Verify the ACF fields are exposed
Call your REST API with the same credentials Semji uses, on any existing item. Swapfaq for the rest base of your content type (posts for built-in posts):
null means the field group is not exposed yet.
Help agents fill the fields correctly
The REST API carries only field names and values. The labels and instructions you see in wp-admin stay invisible to agents. Agents discover a type’s fields by reading an existing item, so a few habits make the fills reliable:- Use descriptive field names. An agent understands
answer_short, it can only guess atfield_2. - Keep at least one well-filled item of each content type. Agents read it to learn which field holds what, and the expected value shape (plain text vs HTML, media ID for an image field, …).
- Brief the agent. When field names are ambiguous, say what each field is for in your instructions, and the agent will map its content accordingly.
Manage or disconnect
From Settings → Integrations → CMS, the WordPress row offers:- Manage tools: enable or disable each of the six tools.
- Disconnect: remove the integration for the whole workspace.
Firewalls, Cloudflare, and IP allowlisting
Semji calls your site’s REST API directly. If a firewall or protection like Cloudflare sits in front of your WordPress, it must let these calls through, or the connection fails. Semji’s servers reach the internet through a fixed set of outbound IP addresses. If a firewall, WAF, or anti-bot protection (Cloudflare, Akamai, Sucuri, …) sits in front of your site, it can block Semji’s requests — typically with a403 Forbidden — before they ever reach your CMS, even when your credentials are correct.
Allow the following Semji IP addresses:
/wp-json/.
Troubleshooting
Invalid WordPress credentials. Check the email or username and the application password.
Invalid WordPress credentials. Check the email or username and the application password.
401 or 403. Possible causes: the login (email or username) or application password is wrong or was revoked, application passwords are disabled on the site, or a firewall (Cloudflare, Wordfence) is blocking Semji before it even reaches WordPress. See the firewall section.Could not connect to the WordPress site. Check credentials and site URL.
Could not connect to the WordPress site. Check credentials and site URL.
- The address redirects. Semji does not follow redirects, so enter the final address, for example the www version or the https version.
- The REST API isn’t reachable:
/wp-json/returns a 404, often because of a plugin or a permalink setting. - The site is unreachable: a DNS problem, host down, or a non-public site.
- The site responds too slowly: the response must arrive within 10 seconds.
Errors shown before you even submit the form
Errors shown before you even submit the form
- “Please enter a valid URL.” The text you entered isn’t a web address.
- “The site URL must start with https://.” HTTP sites cannot be connected.
- “The site URL points to a private or reserved address, which is not allowed.” Local or internal sites are rejected, the site must be public.
An agent reports an error after the connection was working
An agent reports an error after the connection was working
- “WordPress authentication failed. Please check the credentials in the integration settings.” The application password was revoked or changed since connection. Reconnect with a fresh one.
- “No WordPress integration configured for this workspace.” The integration was disconnected. A workspace owner must reconnect it.
- “The post was updated, but its SEO metadata was NOT: no supported SEO plugin (Yoast SEO, Rank Math or SEOPress) was detected…” Semji found none of the three on the site. Activate one of them, or if one is already active, apply the prerequisite configuration so its fields are visible through the REST API.
- “The SEO metadata was NOT saved: this WordPress site runs … but does not expose its … field(s) for writing through the REST API…” The site does not accept REST API writes on your SEO plugin’s fields yet. Apply the prerequisite configuration described in Enable SEO title and meta description updates. The rest of the post update was applied.
An agent says it cannot see or fill the ACF fields of a content type
An agent says it cannot see or fill the ACF fields of a content type
acf key is absent from your site’s REST responses and agents cannot read or write those fields. Enable Show in REST API on the field group. See Expose ACF fields to Semji. If the content type itself does not show up when the agent lists post types, the post type also needs to be visible in the REST API (same section).Related
- CMS Publisher: publish your content to your CMS without leaving Semji
- Sync drafts to your CMS: API-based publishing flow, if you prefer to drive the sync yourself.