// POST

How to Connect Manus AI Agents to WordPress: API Keys and Env Variables

March 10, 2025 8 min read Guide, AI News, Blog Posts
M-anus general AI agent

Last weekend, the tech world was buzzing about Manus.im, a Chinese startup that launched a “general AI agent” capable of performing complex tasks. Their impressive demos showed the agent researching topics, creating reports, and completing various tasks – all with minimal human input.

But here’s the thing: after looking under the hood, we realized we could build something remarkably similar using our WordPress plugin, AI Workflow Automation.

Connecting Manus to WordPress: Credentials and Environment Variables

If you want a Manus AI agent to read from or publish to your WordPress site, the agent needs authenticated access to the WordPress REST API. Here is the practical setup, using only standard WordPress features.

1. Create WordPress REST API credentials (application password)

WordPress ships with Application Passwords, the recommended way to give an external agent API access without sharing your main login. In your WordPress dashboard go to Users, open your profile, scroll to Application Passwords, enter a name such as “Manus Agent”, and click Add. WordPress shows a 24-character password once, so copy it right away because it is not displayed again. Your credentials are your WordPress username plus this application password, sent as HTTP Basic Auth to endpoints under https://your-site.com/wp-json/wp/v2/.

Application Passwords require HTTPS and can be turned off by some hosts or security plugins. If the section is missing, enable it or use a REST authentication plugin that issues API keys or JWT tokens instead.

2. Store the credentials as environment variables for the Manus agent

Never hard-code credentials into a prompt or a shared file. Give your Manus agent the values as environment variables so they stay out of your workflow logic. A common pattern looks like this:

The agent reads these variables at run time and builds the Authorization header from them. Keeping the base URL in a variable also lets you point the same agent at a staging site or your live site by changing a single value.

3. Test on a staging WordPress site first

Before you let an agent write to your live site, point it at a disposable test or staging WordPress install. Create a fresh WordPress site (a local install or a free staging environment from your host), generate a separate application password there, and run the agent against that base URL. Confirm the agent can authenticate with a read call such as GET /wp-json/wp/v2/posts, then try creating a draft before you enable publishing. Once the workflow behaves as expected, switch the WORDPRESS_API_URL variable to your production site.

What is an ai agent?

An AI agent is a software program that uses artificial intelligence to perform tasks or make decisions based on data inputs. Think of it as a virtual assistant that can automate processes, analyze information, and interact with users. AI agents can handle a variety of functions, such as responding to customer inquiries, generating content, processing data, and more, depending on how they’re programmed.

In the context of the AI Workflow Automation plugin, an AI agent can be created by setting up workflows that define how the agent should respond to different inputs and what actions it should take. This allows website owners to streamline operations and enhance user interactions on their sites.

What is Manus.im (General AI agent)  and Why Is Everyone Talking About It?

Manus describes itself as “a general AI agent that bridges minds and actions: it doesn’t just think, it delivers results.” The company claims their agent can handle various tasks for work and life, completing them while you rest.

General AI Agent - Manus

After testing it out, we confirmed what many suspected – it’s essentially a chain of AI models (Claude Sonnet and Qwen) with function calling capabilities. It’s impressive, but not something that can’t be replicated with the right tools.

Building Our Own General AI agent Version: Meet “M-anus”

As an experiment, we decided to build our own general AI agent using our AI Workflow Automation plugin for WordPress. We affectionately named it “M-anus” (a playful riff on the original).

M-anus general AI agent

The setup process was surprisingly straightforward:

  1. We created a new workflow in our plugin
  2. Added a Chatbot node as the main interface
  3. Defined action capabilities for the bot to perform
  4. Connected research capabilities using the Perplexity API
  5. Used Claude 3.7 Sonnet for content generation
  6. Added GPT-4o for title generation and refinement

The Workflow Structure

Here’s what our workflow looks like in the builder:

General AI Agent : M-anus AI Workflow

The workflow follows a simple pattern:

Testing M-anus Against General AI Agent Of Manus.im

To see how our creation measured up, we took prompts directly from Manus.im’s official examples and ran them through our system.

For instance, we asked both systems to research “the largest real estate brokerages in the top 10 major metro areas.”

General AI agent Manus.im Result:

General AI Agent : Manus Result

Our M-anus Result:

General AI Agent : M-anus AI Results M-anus results vs General AI Agent

As you can see, both systems delivered comprehensive reports with similar information. In some ways, our system provided more detailed regional breakdowns.

How It Works Behind the Scenes

When a user sends a message to M-anus, here’s what happens:

  1. The Chatbot node analyzes the request to determine intent
  2. If research is needed, it triggers the Research node with Perplexity API
  3. The results are sent to Claude 3.7 Sonnet to structure and expand the content
  4. GPT-4o helps refine titles and headings
  5. A new post is generated using the Post Node automatically
  6. The results are delivered back to the user

We can even track the cost and performance of each component:

cost results from M-anus vs General AI Agent Manus

The entire process for our real estate example cost just $0.0762 in API calls – remarkably efficient for the value delivered.

Why WordPress Makes This Even Better

The key advantage of building this in WordPress with our plugin is that we don’t need to waste tokens generating UI elements. WordPress already provides:

Build Your Own General AI Agent

The exciting part is that anyone using our AI Workflow Automation plugin can build their own general AI agent. No coding required – just drag and drop nodes in our visual workflow builder.

Here’s what you’ll need:

The Chatbot node with its Actions feature is particularly powerful. You can define specific actions your agent can perform, such as:

You can download M-anus as a template or a starting point and build on that:

  1. Download the workflow from this link
  2. Download and install the Pro version of AI Workflow Automation
  3. Open a new workflow, and on the bottom left click on Import/export workflow
  4. Drag and drop the workflow you just downloaded to that box
  5. Save the workflow and start playing with M-anus!

Final Thoughts

While companies like Manus.im are making headlines with their general AI agents, the technology to build similar systems is increasingly accessible. Our experiment shows that with the right tools, anyone can create powerful AI agents without extensive coding or infrastructure.

AI Workflow Automation brings this capability to WordPress, allowing businesses and creators to build custom AI agents tailored to their specific needs.

Have you tried building your own AI agent? Let us know in the comments!


Want to build your own general AI agent like M-anus? Check out our AI Workflow Automation plugin and start creating today!

Frequently Asked Questions

How do I use agent and Manus environment variables for WordPress?

Store your WordPress base URL, username, and application password as environment variables (for example WORDPRESS_API_URL, WORDPRESS_USERNAME, and WORDPRESS_APP_PASSWORD) and have the Manus agent read them at run time to authenticate against the WordPress REST API. This keeps credentials out of your prompts and lets you switch between a test site and your live site by changing one variable.

How do I use the WordPress API with Manus agent credentials?

Create an application password under Users in your WordPress dashboard, then send your username and that password as HTTP Basic Auth to REST endpoints under /wp-json/wp/v2/. Start with a read request such as listing posts, then move on to creating drafts once authentication works.

How do I test a WordPress site for Manus AI agents?

Use a staging or local WordPress install with its own application password, point the agent’s base URL at it, and verify that a read call succeeds before you allow any writes. Testing on a throwaway site protects your live content while you confirm the agent behaves correctly.

Leave a reply

Your email address will not be published. Required fields are marked *