AI shows up in PubSub in two places now. The first is in your chats: AI steps that understand what customers actually write and collect clean data. The second is behind the scenes: you can connect Claude, Cursor or any AI agent to your PubSub account and manage it just by asking. Here's what each one does, and what we deliberately kept out of the AI's reach.

Part 1: AI inside your WhatsApp flows

A PubSub flow is a set of steps (nodes) you build visually under Flows → All Flows. The scripted steps, like buttons, lists and questions, are still there. Two AI steps now sit next to them.

AI Route: send every chat to the right place

This step reads the recent conversation and picks the right path. "My car is making a noise" goes to service, not sales. "I want to see the 2-bedroom in JVC" goes to the leasing team. "Where's my order?" goes to support.

If the AI isn't sure, or something goes wrong, the conversation follows a fallback path, so nobody gets stuck.

AI Assistant: a real conversation that still collects the data

This one actually chats. You give it:

  • a persona, like a friendly sales assistant for a car dealer,
  • a knowledge text with your prices, policies and FAQs,
  • an optional live-data URL for things that change, like stock or availability,
  • a list of fields to collect, like name, email, budget or preferred date.

It chats naturally until it has everything, then leaves the conversation in one of three ways: done, escalate (hand over to a person) or failed.

A support team working in the office

Why it's safe to put in front of customers

  • It only answers from what you gave it. If a fact isn't in its knowledge text or your live data, it doesn't make it up.
  • Answers are checked before they're saved. Emails, phone numbers, numbers, dates and option lists are validated, so your CRM gets "2026-12-04" and not "next tuesday maybe".
  • It knows when to stop. Off-topic requests, or "can I talk to a person?", take the escalate path straight to your team.
  • It knows your real list. Connect a catalog and the AI answers from your actual products, branches or services, and only accepts combinations that exist.

Your own AI keys

The AI steps run on your own model keys. Add them under Flows → AI Providers: OpenAI, DeepSeek or any OpenAI-compatible service. Keys are encrypted and never shown again, and there's a Test button to check them. Each AI call counts against your plan as an event.

One shape for every lead

Everything a flow collects goes into one set of fields. Question answers, button choices and AI fields all land in the same place. When the flow ends, PubSub saves the lead, shows it to your agents, and sends it to your webhook (CRM, Google Sheet, n8n or anything else).

Use the same field names in scripted and AI steps, and your other systems never notice when you swap a "choose 1, 2 or 3" step for an AI one.

Part 2: Manage PubSub by talking to an AI agent

PubSub now runs an MCP server (Model Context Protocol). In plain words, an AI agent like Claude Code, Claude Desktop, Cursor or Gemini CLI can connect to your account and do the work for you.

Setup takes one line. Get your API key from the Account page (with API access turned on) and add the server. Copy-paste setups for each tool are in the dashboard under AI Agents.

claude mcp add --transport http pubsub https://pubsub.nextmark.ae/mcp \
  --header "Authorization: Bearer YOUR_ACCOUNT_API_KEY"

What a session looks like

You just talk to it:

  1. "List my flows."
  2. "After the welcome message, add buttons asking for the branch: Dubai and Abu Dhabi. Send Dubai to a question asking for their email."
  3. "Check it and simulate a customer who picks Dubai."
  4. "Publish it."
  5. "Create an agent called Omar who only sees the Dubai number."

Step 3 is the useful one. Simulate conversation plays customer messages through the real engine without sending anything on WhatsApp, so you can test a change before any customer sees it.

Managing a business from a laptop by chatting with an AI agent

What the agent can do

Area What you can ask for
Flows Build and edit steps, connect them, validate, simulate, publish
Team Create agents and choose which WhatsApp numbers they see
Conversations Read chats, check or pause the bot, opt contacts out
Lists and campaigns Build contact and broadcast lists, draft, pause or resume campaigns
Forms and catalogs Create WhatsApp forms, build catalogs, sync them from your system
Calendars Connect Google, Microsoft or Nextmark Bookings, change time zone and slot length
Account Check usage and AI providers

More things to ask

  • "Build a catalog for our three branches with these 12 services under each."
  • "Make a booking form from that catalog and connect it to the Google calendar."
  • "Draft a campaign to the Ramadan list using the offer template."
  • "Which conversations from today ended without a lead?"
  • "Pause the bot for this customer, a human is handling it."

What it can't do, on purpose

An AI agent with access to your customers needs limits. These actions stay in the dashboard, with a person:

  • Deleting or disabling apps, numbers, agents or flows
  • Creating, reading or rotating API keys, secrets or passwords
  • Launching or cancelling a campaign (it can draft one, but a person presses send)
  • Lifting an opt-out
  • Messaging customers directly

Every change made through the MCP is logged, with the tool used, the details, the IP and the client. You can always see exactly what the AI did.

Better control for busy teams

Two smaller changes make shared inboxes easier to run:

  • Access per WhatsApp number. Each agent only sees the numbers you assign them. Your Dubai team sees Dubai, your Abu Dhabi team sees Abu Dhabi, and an agent with no numbers sees nothing.
  • Replying takes over the chat. When an agent replies, the conversation becomes theirs and the bot pauses for 24 hours. Release it and the bot picks up again. The bot and a person never answer over each other.

Who this is for

Use the AI steps if your customers write in their own words and you're tired of "please reply with 1, 2 or 3". Use the MCP if you manage several flows, numbers or brands and would rather describe a change than click through it. They work best together: let an AI agent build the flow, then let the flow's AI talk to your customers.

Want an AI-powered WhatsApp flow for your business? Talk to us and we'll design it, connect it to your systems and hand it over ready to run.