Skip to main content

Building a Listings Site with AI Agents

ProNeeds Events Manager Pro 3.10 or later, with Pay to Post and claim links switched on, and Events Manager's AI / MCP connection set up.

A listings site needs events, and adding them by hand is slow. With Events Manager Pro, an AI agent can do that work: it finds events in your area, adds each one to your site as a draft with its venue, times, description and image, and sends the organizer a link to claim the listing. Organizers who claim their listing check the details and pay your posting fee to publish it.

Nothing the agent adds goes public by itself. Every listing stays a private draft until its organizer claims it and pays, so the organizer is the one who confirms the details before anyone sees them.

This page explains how the pieces fit together, what to set up before an agent starts, what it can do over Events Manager's MCP server or the REST API, and how to run it responsibly.

How it fits together​

Three features do the work:

  • Pay to Post charges organizers a fee to publish an event, with an optional extra fee to feature it, and credit packs for organizers who post often.
  • Claim Links let you hand a draft event over to its organizer. They open the link, claim the event (an account is made for them if they don't have one), edit it on your event form, and pay to publish it.
  • Events Manager's MCP server and the WordPress Abilities API let an agent create events, locations, categories and images, and make and follow up claim links, all as a WordPress user you choose.

A typical run looks like this:

  1. The agent finds an event in the sources you point it at, and checks it isn't on your site already.
  2. It adds the venue as a location if it's new, and creates the event as a draft.
  3. It creates a claim link for the draft. Your site emails the link to the organizer, or the agent gets the link back to put in a message of its own.
  4. The organizer claims the listing, checks and edits it, and pays the posting fee (and the feature fee, if they choose). The event is published under their account.
  5. Later runs check which listings were claimed and paid, and clear out drafts whose links expired.
Before you start

The agent fills in your listings, but a person sets up the site it works on. You need:

  • WordPress 7.0 or later, with Events Manager and Events Manager Pro 3.10, your theme and your events pages.
  • Pay to Post switched on, with your posting fee, a feature fee if you want one, the payment page and a payment gateway that can take posting fees. See Pay to Post.
  • Claim links switched on, in the Pay to Post section of Events then Settings then Bookings. Check the claim email while you're there: it's what organizers receive, so it should say who you are, why you've listed their event, and how to ask you not to contact them again. See Claim Links.
  • The MCP Adapter plugin and a connection for the agent. AI / MCP Setup covers installing the adapter and connecting an AI client.
  • A WordPress user for the agent alone. Don't connect your own administrator account. The capabilities it needs are listed below.

The agent's WordPress user​

The claim link tools only work for users who can edit other people's events, so the agent's user needs more than a contributor has:

CapabilityWhy
read, edit_events, edit_locationsTo see what's on the site and add draft events and venues
edit_others_eventsTo create, check and cancel claim links
upload_filesTo add images
delete_eventsOnly if the agent should remove drafts nobody claimed

It doesn't need publish_events, because it only ever creates drafts.

What the agent can use​

Over MCP, the agent sees these tools (among others). The names are how MCP clients list them.

Events Manager:

  • events-manager-list-events and events-manager-get-event, to check what's on the site already.
  • events-manager-create-event, with post_status set to draft. It takes the name, description, dates and times, timezone, a location_id or the details for a new location, and a featured_image (an attachment ID or a public image address to fetch).
  • events-manager-update-event and events-manager-delete-event.
  • events-manager-list-locations and events-manager-create-location.
  • events-manager-list-categories, events-manager-create-category, events-manager-list-tags and events-manager-create-tag.
  • events-manager-upload-media, for images.

Events Manager Pro claim links (only listed while claim links are switched on):

ToolInputWhat it does
events-manager-pro-create-claim-linkevent_id, the organizer's email, and send (true by default)Creates the link and returns it. It also emails the link with your claim email, unless send is false. A new link replaces the event's previous one, which stops working. The event must be a draft that hasn't been claimed.
events-manager-pro-get-claimevent_idSays where the claim stands: none, pending, expired or claimed, who the link went to, when it was created, emailed and expires, who claimed it, and whether the posting fee is awaiting_payment, paid or covered by a credit. The link itself can't be read back, because it isn't stored. Create a new one instead.
events-manager-pro-cancel-claimevent_idStops an unclaimed link working. The event stays a draft.

An example run​

Here's the kind of instruction you might give an agent connected to your site:

Find public events happening in Maple Bay over the next six weeks, using the town's community calendar and the library's events page. For each one that isn't on our site yet, add it as a draft with its venue, date, time, a short description in your own words, and its image if it has one. Then send the organizer a claim link at the contact address listed for the event. Skip anything without a public contact address. When you're done, list what you added and who you invited.

For each event it adds, the agent makes calls like these. First the draft:

{
"tool": "events-manager-create-event",
"arguments": {
"event_name": "Harbor Square Night Market",
"content": "Street food, local makers and live music around Harbor Square.",
"event_start_date": "2026-12-12",
"event_start_time": "17:00",
"event_end_time": "21:00",
"location_id": 1,
"post_status": "draft"
}
}

Then the claim link, using the event ID the first call returned:

{
"tool": "events-manager-pro-create-claim-link",
"arguments": {"event_id": 12, "email": "nightmarket@example.com"}
}

which returns these details, among others:

{
"event_id": 12,
"event_name": "Harbor Square Night Market",
"post_status": "draft",
"state": "pending",
"email": "nightmarket@example.com",
"created": "2026-11-16T09:12:40+00:00",
"expires": "2026-12-16T09:12:40+00:00",
"emailed": "2026-11-16T09:12:40+00:00",
"url": "https://yoursite.com/my-events/?emp_claim=...",
"email_sent": true
}

A week later, events-manager-pro-get-claim on the same event shows whether the organizer has acted:

{
"event_id": 12,
"post_status": "publish",
"state": "claimed",
"claimed": "2026-11-18T19:40:02+00:00",
"claimed_by": {"id": 9, "name": "nightmarket", "email": "nightmarket@example.com"},
"posting": "paid"
}

Agents don't run by themselves. To have one check for new events every week, follow up on claims and tidy up expired drafts, schedule it in your AI client or agent platform.

Using the REST API instead​

Agents and scripts that don't use MCP can do the same over HTTP, as the agent's user.

  • Create the draft with Events Manager's REST API: POST /wp-json/events-manager/v1/events with post_status set to draft. See Create event.
  • Run the claim link tools through the WordPress Abilities API, at /wp-json/wp-abilities/v1/abilities/events-manager-pro/<name>/run. WordPress decides the HTTP method from what each one does:
    • create-claim-link uses POST, with the input as JSON: {"input": {"event_id": 12, "email": "nightmarket@example.com"}}
    • get-claim uses GET, with the input in the query string: ?input[event_id]=12
    • cancel-claim uses DELETE, also with the input in the query string.

For example:

curl -u 'listings-agent:<application-password>' \
-H 'Content-Type: application/json' \
-d '{"input": {"event_id": 12, "email": "nightmarket@example.com"}}' \
https://yoursite.com/wp-json/wp-abilities/v1/abilities/events-manager-pro/create-claim-link/run

GET /wp-json/wp-abilities/v1/abilities lists every ability the user can see, with its input schema.

Use an application password for the Abilities API

Authenticate these requests with an application password created in the agent user's profile. A connection approved through the browser for an MCP client is limited to the MCP server and the Events Manager REST APIs, and is refused by the Abilities API address.

Who pays, and when​

Each listing an organizer claims is charged your posting fee before it's published. Some organizers will also pay to feature their event, and an organizer with several events coming up may buy a credit pack instead of paying each time.

A claimed listing is charged even if the organizer's role could normally publish without paying. Only users who can edit other people's events post for free.

The agent's work only pays off when organizers claim, so the number to watch is how many invitations become paid listings. That depends on your area, your fee and how useful your site already is to organizers. Measure it with events-manager-pro-get-claim instead of assuming a rate.

Running it responsibly​

An agent can add events and send invitations much faster than a person, which makes mistakes faster too. A few things are worth deciding before it runs:

  • Check the first runs yourself. Have the agent create claim links with send set to false, read the drafts it made, then send the links (or let it send them) once you're happy with its work.
  • Only use sources you're allowed to use. Respect the terms of the sites the agent reads, and have it write short descriptions in its own words instead of copying other people's text and images wholesale.
  • Treat invitations as the emails they are. Each claim link email goes to someone who didn't ask to hear from you. The rules for that kind of email differ by country (and in some places by whether the recipient is a business or a person), and often require that you say who you are, give a postal address and offer a way to opt out. Put those in your claim email, keep a list of people who've asked not to be contacted, and have the agent check it before inviting anyone. If you're unsure what applies to you, ask someone who knows the rules where you and your organizers are.
  • Send in small batches, through a proper mail service and not your web host's default mail (see Mail Settings), so your site's email doesn't end up in spam folders.
  • Don't invite the same organizer over and over. A new link for an event emails the organizer again, unless send is false. Have the agent check the claim before sending another, and stop after one reminder.
  • Clean up. Links expire after 30 days by default. For drafts whose links expired, the claim can be cleared with events-manager-pro-cancel-claim and the draft removed with events-manager-delete-event, so your drafts list doesn't fill up with listings nobody wanted.

Good to know​

  • These tools fill in your listings and invite organizers. They don't install WordPress, change your settings, or set up pay to post, your pages or your payment gateway. That part is yours.
  • The claim link tools are only registered while claim links are switched on, so an agent won't see them otherwise.
  • A claim link can only be made for a draft that hasn't been claimed. Once you or anyone else publishes the event, its link stops working.
  • When an organizer claims while logged out, an account is made for the invited email address, even if your site doesn't allow anyone to register. Who you invite is who gets an account, so the agent should only invite addresses it found published for that event.
  • If an organizer leaves without paying, the event stays a draft on their My Events page with a button to pay whenever they're ready.
  • No tool issues refunds. If you need to refund a posting fee, do it in your payment provider's dashboard.