Skip to main content

WhatsApp Personal

WhatsApp Personal lets an agent answer on your own WhatsApp number. You link CatalEx as a device on your phone, the way WhatsApp Web is linked, and the agent reads and replies through it. To use a business number with Meta credentials instead, see Connect WhatsApp.

:::warning Experimental WhatsApp Personal is experimental and available on CatalEx Cloud only. WhatsApp doesn't officially support linking automation tools, and it may temporarily or permanently restrict a number that uses them. :::

One linked number can serve several of your agents. Each agent answers its own people and groups, and no person or group is answered by two agents. A number is linked once per CatalEx account, so it shows the same agents on every computer you are signed in on. An agent answers on one number.

Before you begin​

  • An agent with a verified native reply.
  • CatalEx signed in to your CatalEx account on this computer. Adding a number is refused without it.
  • Your phone, with WhatsApp on the number you want to link.

In the app​

  1. Open the agent's Add channel: the + on its tile, Add channel on the Channels tab of its settings, or step 3 of setting up a new agent (Take it where you work). Choose WhatsApp Personal.
  2. If you have linked numbers already, they appear as cards with the number and the agents on it. To use one of them, select it and choose Use number, then continue with Choose who the agent answers. To link another number, choose the New card. With no linked number, the setup shows at once.
  3. Under How to link, choose Scan a QR code or Use a pairing code. For a pairing code, enter Your WhatsApp number with its country code (such as +15551234567).
  4. Read the note, then tick I understand this isn't an official WhatsApp integration, and WhatsApp may limit numbers that send spam. Choose Show QR code (or Get code for a pairing code).
  5. On your phone, open WhatsApp, choose Settings › Linked devices › Link a device and scan the QR code. For a pairing code, choose Link with phone number instead on the phone and type the code CatalEx shows. A timer shows how long the code lasts, and Open WhatsApp's help for linking a device opens WhatsApp's instructions. Cancel link stops the attempt.
  6. When CatalEx says WhatsApp Personal linked: +NUMBER (NAME), choose who the agent answers (below), then Done.

If the code runs out before you use it, choose Show a new code. If you scan a number you already linked, CatalEx reuses it and never makes a second account for it. Your phone lists the device as CatalEx.

If a link does not finish, the next try resumes the same setup and shows the reason with Try again.

Choose who the agent answers​

After linking, Who AGENT answers shows two fields, Numbers and Groups, with the people and groups as pills. Remove one with its ×.

  1. Choose the + in a field to open a list of your chats and contacts. Pick a person or group from it.
  2. To search, type a name or a number. Typing a full number offers that number. Typing digits offers a prefix such as +44*, which matches every number starting with those digits. Press Enter to add what you typed.
  3. A new agent starts with your own number, shown as You, unless another agent already holds it. Your own number is always yours: message yourself in WhatsApp to try the agent.

The list shows who else answers each entry. A person or group another agent holds is grayed and names that agent, and so is a number or prefix you type that another agent's entry already covers. If you add something another agent holds, CatalEx saves the rest and lists what it refused, for example "A is already linked to another agent. Unlink it first, then try again." An agent that already answers on another number sees "AGENT already answers on NUMBER. Remove it from that number first." The list says Syncing your chats… while CatalEx reads the number's chats for the first time.

People and groups nobody holds get no reply, and their media is never downloaded.

Change who an agent answers later​

There are two places, and both edit the same entries.

  • Settings › Channels. Choose the WhatsApp Personal card ("N numbers · M agents"). Linked numbers are listed with their agents on the left, with a search box. Select an agent to see its People, Groups and Blocked pills on the right, each with a + that opens a search. A full number offers This number, and digits offer a prefix such as 44*. Blocked belongs to the number, so every agent on it shares that list. Changes are drafts: Cancel and Save appear when something changed, and Save applies them. A refusal, such as a person another agent already answers, shows as text under the fields with that pill outlined in red; the changes that don't conflict are saved.
  • The agent's settings. Open it, choose the Channels tab and open the WhatsApp Personal card. It shows the same Numbers, Groups and Blocked rows, plus Limits and the channel's other settings. Save and Cancel appear when something changed. A number that is both allowed and blocked turns red with "Red numbers are allowed and blocked. Keep one."

Groups​

An agent works in a group only when you allowed that group, and then only when someone mentions you in it or replies to a message you or the agent sent. Other group messages start no work. Your own messages in the group don't start work either. A mention counts only from WhatsApp's mention list, so typing @name as text doesn't wake the agent. Anyone who mentions you is answered, even if they aren't on your list, unless you blocked them.

Each reply in a group quotes the message that mentioned you. In the picker a group shows a Group tag. One you have left shows You're not in this group, and the agent can no longer send to it.

Conversation record​

While an agent serves a chat, CatalEx keeps every message of it, not only the ones addressed to the agent, so the agent can tell who wrote what. Each message gets a number in its chat, shown to the agent as m1, m2 and so on. Numbers only grow and are never reused; an edit or a deletion keeps the number. Only WhatsApp Personal keeps messages nobody addressed to the agent. Slack keeps what it reads once, when the agent is mentioned (Slack); WhatsApp and Google Chat pass the agent only what is sent to it.

  • What is kept. In an allowed group: messages from other members, tagged or not, your own messages from your phone (labelled as yours) and the agent's replies. In a direct chat: the other person's messages, including those a pause turned away, your own messages from your phone and the agent's. A message that does not address the agent still starts no work.
  • What is not kept. Messages from a blocked person or someone outside the allowed lists, from a group you did not allow, and messages sent before the agent was enabled.
  • Quotes. When someone quotes a message, the agent is told which message it is, who wrote it and who is quoting it, so it does not mistake the person asking for the author. If the quoted message was not kept, the agent gets WhatsApp's own excerpt, or Unknown person when WhatsApp gives no author.
  • What the agent is told. When a message arrives, the agent's input presents the kept messages that arrived before it, with the current message last, so it answers with the whole conversation in view. It shows the newest five with their numbers and says how many there are in all; it reads the rest by number. The number shown is the providers.record_unseen_inline setting of the messaging service (0 to 5).
  • Reading and replying. The agent reads any kept message of the chat it is working in, or the messages around it, by number, from your computer's copy first, and the replies under a message by its tag, such as m3. Only the chat it is working in can be read. A read says what it found: the messages, none, only part of them, or that the source could not be reached; with the service out of reach, the computer answers from its copy and says the result is partial. It can reply to or react to a kept message by its number; a number the record does not hold is refused.
  • Catching up. CatalEx Cloud sends each new message to the computer that runs the agent as it happens. A computer that was offline fetches what it missed, edits and deletions included, when it connects.
  • Where it ends. Removing a group from the allowed groups, removing a person from the agent, deleting the chat or the agent, or unlinking the number erases the record in CatalEx Cloud and on your computer. Messages older than your conversation retention are removed; the numbers of the rest don't change.

The app shows the same conversations as before; the record is for the agent. A computer on an earlier CatalEx than 0.1.19 still gets each message and its quote as before, without the record.

Pause when I reply​

When you write in a contact's chat yourself, the agent stays quiet in that chat for a number of minutes, 15 by default. Each agent on the number has its own value.

  1. Open the agent's settings and the Channels tab, then the WhatsApp Personal card.
  2. Set Pause when I reply to a number of minutes from 0 to 1440. 0 means Off, and the agent never pauses.
  3. Choose Save.

The new value also applies to pauses already running, and a message that arrives during a pause is kept in the blocked list. Your own messages in a group don't start a pause.

Chat commands and system messages​

On the agent's Channels tab, the WhatsApp Personal card has two switches, Chat commands and Send system messages to people. Both are off by default. While Chat commands is off, a message starting with / is ordinary text for the agent; the CatalEx Manager commands are always on. While Send system messages to people is off, CatalEx's own notices stay in the app. From the terminal, use catalex accounts agents switches show|set ACCOUNT_ID --agent AGENT_ID.

Approvals​

Only you decide an approval or a permission question, and the same rule applies in direct chats and in groups. The agent sends the question as a message with a WhatsApp poll under it. The message starts "Question for NAME:" because WhatsApp can't show it to one person only. Answer by:

  • voting in the poll from your own phone, or
  • replying to the message or the poll with 1, 1. Allow or allow, or
  • in a group, tagging the agent's number with the same words, when it is the only question open there, or
  • answering in the CatalEx app.

The first answer decides. If someone else votes or replies, CatalEx tells them the question was for you, the question stays open and nothing reaches the agent. Anyone in the chat may still answer an ordinary question that offers choices. A question with fewer than two or more than twelve choices, or one that takes a typed answer, arrives as text.

Whether the agent asks at all is its own Approvals setting on its General tab, the same for every chat. An agent that must never ask is set to Always deny.

The CatalEx Manager group​

The first time you link a number, CatalEx creates a WhatsApp group named CatalEx Manager that only you are in, and sends a welcome into it. In it only your own messages are read. Type /help there for the commands. They list your agents, add or remove their chats, search for people and groups, change an agent's pause, engagement, switches and limits, answer waiting approvals, show usage and open an agent's settings; CatalEx Manager group lists them all. In another chat, /agent NAME or /agent NAME MESSAGE brings that agent into the chat.

If you leave or delete the group, open Settings › Channels, select the number's agent and choose Recreate manager channel. CatalEx says "CatalEx Manager group created. Open your messaging app to manage your agents." If the number is not connected it says "Connect this number first, then try again." A number linked before this feature has no group until you recreate it.

  • Disconnected. If you unlink CatalEx on your phone, or another CatalEx account links the same number (the latest link wins), the number shows Disconnected in Settings › Channels with Link again. Link it again from any computer. Your agents, entries and conversations stay. When another account takes the number over, CatalEx says "This WhatsApp Personal number is now connected to another CatalEx account."
  • Unlink an agent. In Settings › Channels, select the agent and choose Unlink (bottom left). CatalEx asks "Unlink AGENT from WhatsApp?" and says either "WhatsApp stays linked on your phone because other agents use this number." or, for the last agent, "This removes WhatsApp from AGENT and from linked devices on your phone."
  • Remove a number. A number with no agents, or a disconnected one, shows Remove number. It asks "Remove this number from CatalEx?" On a disconnected number with agents it removes each agent in turn. If a step fails, it says why; choose Remove number again to finish.

Removing the last agent or the number removes CatalEx from your phone's Linked devices and removes the conversations from CatalEx. Chats on your phone are not touched.

Verify a reply​

Message yourself in WhatsApp ("Message yourself") and check that the agent answers there. The chat also appears under the agent's WhatsApp Personal channel in CatalEx.

With the CLI​

Run these from any directory with catalex installed and signed in on this computer. Flags are in the command reference.

catalex channels add --agent AGENT_ID --type whatsapp_personal --new
catalex destinations setup ACCOUNT_ID --whatsapp_personal --action prepare --value risk_acknowledged=true
catalex destinations setup ACCOUNT_ID --whatsapp_personal --action link

The first command adds the channel and prints the account ID. The second accepts the risk notice that catalex destinations setup ACCOUNT_ID --whatsapp_personal shows; run it only once the number's owner has agreed. In a terminal the second draws a QR code; scan it as in the app. Add --value phone=+15551234567 to get a pairing code instead. Expected last line: Linked +<number> (<name>). Ctrl-C leaves the link open and prints how to resume it with --operation-id. With --json the command does not wait. Add the number with catalex channels add --new as above. A number added alone with catalex accounts add has no agent: give it one with catalex destinations setup ACCOUNT_ID --whatsapp_personal --action prepare --value risk_acknowledged=true --value agent_id=AGENT_ID, or run the plain catalex destinations setup ACCOUNT_ID --whatsapp_personal, which lists the agents to choose from. Without an agent the command refuses with SETUP_AGENT_REQUIRED (exit status 2) and names catalex channels add --agent AGENT_ID --type whatsapp_personal --new, before anything is sent.

catalex accounts list shows your numbers (Connected or Disconnected (CODE)) with the agents on them, and ACCOUNT_ID is the ID it prints. catalex accounts health prints numbered fixes for anything that needs attention.

Join an agent to a linked number​

catalex channels add --agent AGENT_ID --type whatsapp_personal --account ACCOUNT_ID --entries '+33*'
catalex accounts entries show ACCOUNT_ID
catalex accounts entries add ACCOUNT_ID --agent AGENT_ID +44*
catalex accounts entries add ACCOUNT_ID --agent AGENT_ID --group Family
catalex accounts entries move ACCOUNT_ID --from AGENT_ID --to OTHER_AGENT_ID +44*
catalex accounts entries remove ACCOUNT_ID --agent AGENT_ID +44*
  • An entry is a phone number, a prefix such as +44* or a group:ID. --group takes group:ID, a bare ID or a group's exact name, and may repeat.
  • An entry another agent holds is not added. The command lists each one with the agent that holds it and exits 5 (ENTRY_TAKEN) after saving the rest. Remove it from that agent or entries move it.
  • An agent that already answers on another number is refused with AGENT_ALREADY_BOUND, and the error names that number.
  • entries show marks your own number and shows an agent whose computer is offline as offline; entries remove and agents remove still take its ID.

Find people and groups​

catalex accounts candidates ACCOUNT_ID --search family --limit 10
catalex accounts candidates ACCOUNT_ID --groups --search family

Each row shows the entry to use and whether it is already allowed or blocked. On a shared number a HELD BY column names the agent that holds it; --agent AGENT_ID marks what that agent already holds. Without a search the list is the 100 most recent chats, then saved contacts by name. While the chats are still syncing the command says so and exits 0; run it again in a moment.

Block people and set an agent's pause​

catalex accounts access show ACCOUNT_ID
catalex accounts access set ACCOUNT_ID --block +15557654321
catalex accounts agents settings show ACCOUNT_ID --agent AGENT_ID
catalex accounts agents settings set ACCOUNT_ID --agent AGENT_ID owner_pause_minutes=30
catalex accounts agents settings set ACCOUNT_ID --agent AGENT_ID owner_pause_minutes=off

On a number several agents share, the entries are the allowlist, so accounts access set with an allowlist is refused (SETTINGS_UNSUPPORTED); use --block. --allow and --block take people only, and a group can't be blocked. Your own number can't be blocked. owner_pause_minutes is a whole number from 0 to 1440, or off, and it applies from the agent's next message. A new agent starts with 15.

catalex accounts limits show|set ACCOUNT_ID --agent AGENT_ID reads or sets one agent's rate limits on the number. catalex accounts agents engagement show|set ACCOUNT_ID --agent AGENT_ID [low|medium|high|default] sets how often one agent joins conversations on the number.

catalex accounts agents remove ACCOUNT_ID --agent AGENT_ID
catalex accounts remove-link ACCOUNT_ID
catalex accounts manager recreate ACCOUNT_ID

agents remove asks first (default No; --yes confirms, and without a terminal it refuses without --yes). The question names whether WhatsApp stays linked on your phone. remove-link removes a number no agent uses and disconnects its device; a number with agents exits 5 (ACCOUNT_HAS_AGENTS). manager recreate prints Created the CatalEx Manager group for ACCOUNT_ID. Open your messaging app and type /help in it. A number that isn't connected exits 3 (ACCOUNT_OFFLINE), so link it again first.

catalex channels remove CHANNEL_ID and catalex agents delete name a linked number they will disconnect and ask first (default No).

To link again after your phone unlinked CatalEx, run the catalex destinations setup ACCOUNT_ID --whatsapp_personal --action link step that catalex accounts health prints. If another session took over the connection (PROVIDER_CONNECTED_ELSEWHERE), run it with --action reconnect.

Commands that read your numbers also notice a number that moved to another account. They print This WhatsApp Personal number is now connected to another CatalEx account. once, on stderr.

Limits​

  • The agent only answers chats that wrote to it. It can't start a new conversation (DELIVERY_RESTRICTED).
  • Text, images, voice notes, video and documents work in direct chats and allowed groups. Any other file the agent sends goes as a document.
  • CatalEx sends no read receipts, presence or typing indicators.
  • Messages sent one after another are held and reach the agent as one turn, so it answers once.
  • One number belongs to one CatalEx account at a time.
  • Final replies carry no View conversation link.
  • The flow is checked against a simulated provider; group creation and pictures are verified only on a real number.

Codes​

CodeMeaningWhat to do
LINK_TIMEOUTNobody scanned in time.Choose Show a new code, or run --action link again.
LINK_NUMBER_MISMATCHThe scanned number is not this account's.Link the account's own number.
ACCOUNT_ALREADY_BOUNDA WhatsApp business account in CatalEx holds the number.Use another number or remove that account.
PROVIDER_LINK_LOSTThe device was unlinked on the phone.Link again.
PROVIDER_NUMBER_RELINKEDAnother CatalEx account linked this number.Link again to take it back.
PROVIDER_CONNECTED_ELSEWHEREAnother session took over the connection.Run --action reconnect.
PROVIDER_SUSPENDEDWhatsApp temporarily restricted the number.Wait until the time shown.
LINK_CLIENT_OUTDATED, PROVIDER_CLIENT_OUTDATEDWhatsApp refuses the service's client version.Wait for a CatalEx update.
ENTRY_TAKENAnother agent on the number holds an entry.Remove it from that agent, or entries move it.
AGENT_ALREADY_BOUNDThe agent already answers on another number.Remove it from that number first.