Connect Command Media AI to Make

Command Media AI answers questions from the content you have already published. The Make integration puts that inside an automated workflow: a question arrives from a form, a help desk, or a spreadsheet, Command Media AI answers it from your site, and the answer and the pages it cited go on to whatever comes next — an email, a Slack message, a draft reply.

A Make connection needs one thing: the address of your WordPress site. There is no API key to generate and no WordPress username or password to hand over.

Before you start

  1. Install and activate the Command Media Features plugin. Contact Command Media to license the Command Media AI Suite for the site — see the Command Media AI product page.
  2. Check the site is running WordPress 7.0 or newer. Command Media AI generates answers through the WordPress AI layer, which earlier versions do not provide, so answers are unavailable below 7.0.
  3. Connect an AI provider. Install the provider’s plugin, then enter its credentials under Settings → Connectors. Command Media AI uses whichever connector you set up there; it does not store an API key of its own.
  4. Switch on the AI features. In /wp-admin/options.php, set CMFLAG_AI to 1.
  5. Switch on the answer API by setting CMFLAG_AI_REST_API to 1. Make talks to the site through that API, so the connection cannot be created without it.
  6. Check that the site uses post-name permalinks. WordPress only serves /wp-json/ URLs when permalinks are set to something other than Plain.
  7. Make sure the site is reachable over HTTPS on its public address. Make will not accept a plain-HTTP address, and it cannot reach a site behind a staging password or an IP allowlist.

Check the site is ready

Open https://your-site.example/wp-json/commandmedia/v1/status in a browser. This is the same check Make runs. A ready site answers:

{
  "code": "rest_post_success",
  "message": "Command Media AI is available.",
  "data": {
    "status": 200,
    "response": {
      "product": "Command Media AI",
      "api_version": "1",
      "answer_endpoint": "https://your-site.example/wp-json/commandmedia/v1/answer/",
      "site_name": "Your Site",
      "site_url": "https://your-site.example/"
    }
  }
}
You seeWhat it meansWhat to do
cmd_ai_unavailable, HTTP 503The plugin is active but Command Media AI answers are switched off.Set both CMFLAG_AI and CMFLAG_AI_REST_API to 1.
rest_no_route, HTTP 404WordPress does not know this route — the plugin is missing, inactive, or older than this feature.Install or update the Command Media Features plugin and activate it.
A WordPress 404 page, not JSONThe REST API is not being served at /wp-json/.Set permalinks to Post name, then load the URL again.
What the other answers mean

Create the connection in Make

  1. In a Make scenario, add the Command Media AI module you want and click Create a connection.
  2. Enter your site’s address in WordPress site URL — for example https://www.example.com, or https://www.example.com/blog if WordPress is installed in a subdirectory. Leave off /wp-json; a trailing slash is fine.
  3. Click Save. Make calls the status endpoint and refuses the connection if the site cannot answer, so a connection that saves is one that works.
  4. The saved connection is labelled with your site’s name, which makes several sites easy to tell apart.

One connection, one site. To ask two different WordPress sites, create two connections.

Ask a WordPress site

The Ask a WordPress site module takes a single input, Question, which you can type or map from an earlier module. Command Media AI searches the site’s published content, writes an answer from what it finds, and returns the pages it used.

OutputTypeContents
AnswerTextThe answer as HTML — usually one or more <p> paragraphs. Map it into any field that accepts rich text; use Make’s stripHTML() function for a plain-text destination such as an SMS.
CitationsArrayThe pages the answer was drawn from. Each item has a Title and a URL.
What the module returns

To use the citations, add an Iterator set to the Citations array and map Title and URL inside the loop — or aggregate them into one block of text with a Text aggregator. A typical scenario is Webhook → Ask a WordPress site → Text aggregator over the citations → Email.

Make an API call

Use this module for Command Media AI endpoints the other modules do not cover. It takes a path relative to your site’s Command Media AI API, such as /status or /answer, and returns the response body, headers and status code. Absolute URLs are refused: every call goes to the site in the connection and nowhere else.

When something goes wrong

Message in MakeCauseFix
Command Media AI was not found at …The address does not serve the Command Media AI API. Usually the plugin is inactive, the address has a typo, or permalinks are set to Plain.Load /wp-json/commandmedia/v1/status in a browser and work back from what it returns.
Command Media AI answers are not enabled on this siteThe plugin is there, the answer feature is off.Set CMFLAG_AI and CMFLAG_AI_REST_API to 1.
The field rejects the URL before you can saveThe address is not a production HTTPS URL.Use the full https:// address of the public site. Plain HTTP, bare hostnames and localhost are not accepted.
Missing parameter: queryThe Question input was mapped from something that turned out empty.Add a filter before the module so it only runs when the question has a value.
No results found.The site’s search matched nothing for that question, so there was nothing to answer from.Try wording closer to the site’s own content. If it happens often, check that a search plugin such as Relevanssi or ElasticPress is installed and indexed.
Too many requestsThe site’s own rate limits are throttling the API.Make suspends the scenario and retries. To lift the ceiling, raise CMOPT_AI_API_LIMIT_30SEC and CMOPT_AI_API_LIMIT_HOUR.
AI answers are not available at this timeNo connector could generate an answer. Usually the provider plugin is inactive, its credentials are missing or rejected, or the site is below WordPress 7.0.Open Settings → Connectors and check the provider is connected and its account is in good standing. The Command Media AI settings screen shows which connector will answer.
Troubleshooting

About authentication

The Command Media AI answer API takes no credentials, which is why the Make connection asks for none. The trade-off is that the API is reachable by anyone who knows the address, so answers are billed to the site owner whoever asks for them. Before turning the API on, set CMOPT_AI_API_LIMIT_30SEC and CMOPT_AI_API_LIMIT_HOUR to sensible ceilings. The status endpoint runs no query and costs nothing, so connection checks are always free.

For the request and response shapes behind these modules, see the REST API Endpoints reference.