Groupilot Docs

MCP, usare Groupilot da Claude

Collegare Claude, Cursor o qualsiasi client MCP a Groupilot, gli strumenti esposti, il prompt di sequenza, la risorsa doc e le regole di sicurezza.

Groupilot fa girare un server MCP. Collegalo al tuo assistente e di' « crea il mio webi della domenica alle 20 con una sequenza J-1, H-1 e replay ». L'assistente chiama la stessa API di tutti, con la tua connessione OAuth o la tua chiave, e chiede conferma prima di tutto ciò che tocca persone vere.

Collegarsi

Server remoto (consigliato)

URLhttps://app.groupilot.com/mcp
TrasportoStreamable HTTP, senza sessione, risposte JSON
AuthOAuth (il client apre la finestra di autorizzazione Groupilot, nessuna chiave da copiare) oppure, per uno strumento senza OAuth, Authorization: Bearer gp_live_…

L'URL e il passo passo di ogni strumento sono nell'app, Impostazioni, MCP: Claude, ChatGPT, Claude Code, Cursor e Codex si collegano con il tuo account Groupilot, senza API key. La guida riprende questi passaggi: MCP: collega il tuo assistente IA.

Senza token, il server risponde 401 con WWW-Authenticate: Bearer realm="groupilot", resource_metadata="https://app.groupilot.com/.well-known/oauth-protected-resource/mcp": un client compatibile con OAuth si registra da solo, apre la finestra di autorizzazione Groupilot dove scegli l'account WhatsApp e vedi i permessi richiesti, e riceve il suo token. Niente da copiare. Vedi Connect OAuth.

Una API key serve solo per uno strumento che non gestisce la connessione OAuth e permette di impostare gli header: header Authorization con il valore Bearer gp_live_….

Una connessione riguarda un solo account WhatsApp. Un'agenzia con più clienti aggiunge il server una volta per account, ogni volta con un nome diverso: vedi Agenzia: collegare più account WhatsApp.

{ "mcpServers": { "groupilot": { "url": "https://app.groupilot.com/mcp" } } }

Pacchetto locale (presto disponibile)

Per i client senza OAuth remoto, un ponte locale gira in stdio con una API key:

{
  "mcpServers": {
    "groupilot": {
      "command": "npx",
      "args": ["-y", "@groupilot/mcp"],
      "env": { "GROUPILOT_API_KEY": "gp_live_…" }
    }
  }
}

GROUPILOT_MCP_URL è facoltativa. Il pacchetto non è ancora su npm: usa il server remoto nel frattempo.

Cosa può fare l'assistente

Uno strumento per endpoint dell'API, con gli stessi scope (read, write, send), gli stessi limiti e gli stessi errori ({ "error": { "code", "message", "field" } }). Ogni chiamata compare in Impostazioni, MCP, scheda Utilizzo, e in Impostazioni, Integrazioni, Ultime chiamate, con il metodo MCP. Niente caricamento di media in due tempi tramite MCP: l'assistente usa import_media con un URL pubblico.

create_event e update_event accettano il campo language di un evento (vedi Lingua dei messaggi). set_recurrence sposta le date esistenti e restituisce moved e pinned.

Gli strumenti che toccano persone vere (send_adhoc_message, create_broadcast, cancel_job, cancel_broadcast, pause_event, delete_sequence, delete_message, delete_webhook, confirm_backup_admin) sono segnati come distruttivi e la loro descrizione chiede all'assistente di confermare prima con te. Gli strumenti di lettura sono segnati come sola lettura.

Leggere (23)

StrumentoCosa fa
get_accountThe connected WhatsApp account: number status, billing state, limits and the scopes of this key. Call it first to know what you can do.
list_notificationsRecent account notifications: send failures, disconnections, full communities. Use it to explain a problem to the user.
list_eventsThe account's events (a webinar, a challenge…), each with its WhatsApp communities and smart link. Filter by status.
get_eventOne event with its linked sequence, recurrence, smart link and where the link currently sends people.
get_recurrenceThe weekly rule of a recurring event (days, time, time zone) and its smart link.
list_occurrencesThe dated sessions of an event (upcoming or past), each with its WhatsApp communities and their invite links.
get_occurrenceOne dated session with its communities, invite links, member counts and provisioning state.
list_communitiesEvery community of the number: the ones Groupilot created (with their event) and the external ones. Their `whatsapp_id` is what broadcasts target.
get_communityOne Groupilot community with its links, member count and settings.
list_sequencesThe message sequences of the account (name, message count, linked events).
get_sequenceA sequence and its ordered steps (timing relative to the live, type, text, media, poll, or the `community_update` payload of a step that renames / re-describes the community).
preview_resyncWhat applying the sequence again to its linked events would change (messages added, updated, canceled), per event, without changing anything.
list_jobsThe messages planned, sent or failed for an event, with filters (status, occurrence, dates) and a cursor.
get_jobOne scheduled message with its effective content, status, retries and what can still be done with it.
list_job_deliveriesFor one scheduled message, each community it was sent to and the result.
list_broadcastsBroadcasts sent or scheduled to chosen communities, with their counters.
get_broadcastOne broadcast with its status and counters.
list_broadcast_recipientsThe communities targeted by a broadcast and the outcome for each.
list_webhooksThe account's webhook endpoints. Event types: member.joined (Someone joined a WhatsApp community of one of your events.); job.sent (A scheduled message was sent (all or part of its communities).); job.failed (A scheduled message failed for good (no more automatic retry).); community.created (A WhatsApp community was created for an occurrence.); community.full (A community reached its switch threshold; the next one takes over.); channel.disconnected (The WhatsApp number went offline and needs a new QR scan.); event.paused (An event was paused (through the API).); broadcast.completed (A broadcast finished (completed, failed or requires review).).
list_webhook_deliveriesRecent deliveries of one endpoint with status, attempts and HTTP results (30 days).
get_webhookOne endpoint with its events and state.
get_member_webhookThe per-event webhook called when someone joins a community (legacy feature; prefer account webhooks with `member.joined`).
get_backup_adminSensitive. The backup administrator (a second phone number added as admin of each community so the user keeps control if the main number is lost), with the state per community. Phone numbers are masked.

Configurare (29)

StrumentoCosa fa
create_eventCreates an event (punctual or recurring) with its WhatsApp community settings. Communities are created automatically before each occurrence. Ask the user for the name, the date/time (or weekly days) and the time zone before calling.
update_eventChanges an event's settings (display name, link fallback, community names, policies…). The slug (smart link) and the time zone are locked once created; renaming keeps the link and the existing communities as they are. `apply_to_existing_communities` pushes community name/description changes to live WhatsApp communities.
pause_event (ti chiede conferma)Stops every scheduled message of the event until resumed; messages whose time passes during the pause are not sent later. Confirm with the user before calling. There is no delete: pausing is the way to stop.
resume_eventResumes a paused event: future messages go out again (elapsed ones were canceled).
link_sequenceAttaches a message sequence to an event (or detaches it with sequence_id null). Pending messages of upcoming occurrences are recomputed.
set_recurrenceChanges the weekly days/time of a recurring event. Use `dry_run: true` first to see which occurrences would be added or canceled, then apply.
create_occurrenceAdds a dated session to an event (local date-time in the event's time zone). Its community and messages are created automatically.
retry_provisioningWhen an occurrence's WhatsApp community failed to be created, asks for a new attempt.
update_communityRenames a community, changes its description or who may post. Applied on WhatsApp right away.
sync_sequenceThe recommended way to write a sequence: send the complete sequence (name + ordered messages, each with an `external_id`). Groupilot creates it or updates it, matching messages by external_id and removing the missing ones. Pending messages of linked events are resynchronised unless `apply_to_pending_jobs` is false. Timing format: `J-2 10:00` (2 days before the live at 10:00), `J0 19:45`, `J+1 09:00`, or whole hours relative to the live time (`H-1`, `H+2`; minutes are not allowed in `H` timings, use a fixed `J0 HH:MM` time instead). A step of type `community_update` posts nothing: it changes the community name and/or description at its time (`community_update: { name_template, description_template, restore_name, restore_description }`, variables `{community_name}`, `{community_description}`, `{event_name}`, `{date}`, `{time}`, `{J+4:date}`...); typical pair: `🔴 EN LIVE · {community_name}` at the live time (`J0 20:00` for a 20:00 live) and `restore_name: true` at a fixed time after the live (`J0 22:00`). Always use fixed `J0 HH:MM` times for these steps. WhatsApp shows a system line at each change, so keep these steps rare. A text message with `link_preview: false` is sent without the preview card of its link (default `true`). At most 200 messages per sequence. The texts, poll questions and options, and community update templates of one call add up to at most 3 MiB (3,145,728 bytes, counted in UTF-8); a larger payload is refused with `400 validation_error` (field `messages`) before anything is written: split the content across several sequences or shorten the texts. Send the JSON as UTF-8: a request body above 4 MiB is refused with HTTP `413` (escaping every non-ASCII character as `\uXXXX` can double the size of texts written in non-Latin scripts). The sync is refused with a `conflict` error, before anything is written, when the linked events' upcoming occurrences times the messages would exceed 20,000 scheduled sends: link fewer events, or pass `apply_to_pending_jobs: false` and resync event by event with `resync_sequence`. Use the `generate_sequence` prompt to draft one.
create_sequenceCreates a sequence with a name; add messages with add_message (prefer sync_sequence for a full sequence).
rename_sequenceChanges the name of a sequence.
delete_sequence (ti chiede conferma)Deletes a sequence. Refused while an active or paused event uses it unless `force` is true (the events are then unlinked and their pending messages canceled). Confirm with the user.
add_messageAppends one step (text, image, video, audio, document, poll, or `community_update` to rename / re-describe the community at that time; then pass `community_update` with `name_template` / `description_template` or `restore_name` / `restore_description`, no text or media) with its timing. On a text message, `link_preview: false` sends it without the preview card of its link (default `true`). At most 200 messages per sequence. Pending sends of linked events are resynchronised unless `resync` is false.
update_messageChanges the text, timing, media, poll, link preview (`link_preview`, text messages only) or `community_update` payload of one step. Switching a step to `community_update` needs its payload in the same call and drops text, media, poll and ghost mention.
delete_message (ti chiede conferma)Removes one message; its pending sends are canceled when `resync` is true (default).
reorder_messagesSets the display order of the messages (all ids, in order).
resync_sequenceApplies the sequence to the pending messages of its linked events (or only `event_ids`). Sent, in-progress and hand-edited messages are left alone. Refused with a `conflict` error, before anything changes, above 20,000 scheduled sends in one call: pass fewer `event_ids`.
import_mediaDownloads a public HTTPS file (image, video, audio, document; 40 MB max) into the account's media library and returns the `media_url` to use in messages.
create_webhookRegisters an HTTPS URL to receive events (5 max). Returns the signing secret ONCE: give it to the user to store, never repeat it later.
update_webhookChanges the URL, events or description; `enabled: false` pauses deliveries.
delete_webhook (ti chiede conferma)Deletes an endpoint and its delivery history. Confirm with the user.
rotate_webhook_secretIssues a new signing secret (shown once); the old one stops working immediately.
test_webhookPosts a `webhook.test` envelope now and reports the first attempt (HTTP status).
set_member_webhookSets (or clears with null) the per-event member-join webhook URL. Returns the signing secret once when created.
rotate_member_webhook_secretNew signing secret for the per-event webhook, shown once.
test_member_webhookSends a test delivery to the per-event webhook.
set_backup_admin_defaultSensitive. Saves the default backup phone number of an event (E.164, must already be a saved WhatsApp contact of the main number). Does not change communities by itself: use preview_backup_admin then confirm_backup_admin.
preview_backup_adminSensitive. Computes what `apply`, `retry`, `stop`, `enable_rule` or `stop_rule` would do on the chosen communities and returns a preview id valid a few minutes. Nothing changes yet.

Inviare (7)

StrumentoCosa fa
send_adhoc_message (ti chiede conferma)Plans one extra message to the communities of an occurrence at `send_at` (at least 60 s ahead; 30 per day). This sends a WhatsApp message to real people: confirm the text, the occurrence and the time with the user first.
override_jobChanges the text or media of one pending message (not a poll, not a community update step: error `community_update_not_editable`, not already attempted) for this occurrence only, without touching the sequence.
cancel_job (ti chiede conferma)Cancels one pending scheduled message for good. Confirm with the user.
retry_jobRe-queues a failed or partially sent message (`mode`: failed, partial, overdue, force_now). Only communities that certainly did not receive it are retried.
create_broadcast (ti chiede conferma)Sends one message (text, media or poll; never a community update) to up to 200 communities now or at a date (8 per day). Targets are `whatsapp_id`s from list_communities. This reaches real people: show the user the exact text and targets and get a yes before calling.
cancel_broadcast (ti chiede conferma)Cancels a broadcast that has not started sending.
confirm_backup_admin (ti chiede conferma)Sensitive, irreversible on WhatsApp: applies a previewed change (adds or removes an administrator in real communities). Show the preview to the user and get an explicit yes before calling.

L'elenco qui sopra viene dal catalogo online, mcp-tools.json (descrizioni in inglese).

Il prompt di sequenza

Il server fornisce un prompt generate_sequence con gli argomenti event_name, live_day_time, offer, e facoltativamente tone e language (francese di default). Dà all'assistente le regole di una sequenza (finestra da J-4 a J+3, massimo 200 messaggi, timing H in ore intere, menzione di tutti i membri solo sui due o tre messaggi più importanti) e il formato esatto di sync_sequence. L'assistente scrive, tu rileggi, poi salva con sync_sequence. Groupilot non fa girare nessuna IA: la generazione avviene nel tuo assistente. Il prompt conosce anche il passaggio community_update e propone, per un live, 🔴 EN LIVE · {community_name} all'ora del live e il ripristino del nome due ore dopo. Conosce anche link_preview: false (un testo inviato senza la scheda di anteprima del suo link), usato solo se lo chiedi.

La documentazione come risorsa

Il server espone groupilot://docs/llms.txt, questa documentazione in un solo file aggiornato ogni ora, perché l'assistente conosca le regole di timing, le variabili e i limiti senza cercare. Puoi anche incollare llms-full.txt in qualsiasi conversazione.

Sicurezza

  • Il server ha esattamente i diritti della chiave o dell'autorizzazione OAuth. Una chiave senza send non può inviare, qualunque cosa tenti l'assistente.
  • Preferisci read e write per la configurazione quotidiana. Aggiungi send solo quando vuoi che l'assistente invii.
  • Rimuovi una connessione OAuth da Impostazioni, MCP, scheda Accessi (oppure Integrazioni, App collegate), e revoca una chiave da Impostazioni, Integrazioni: l'assistente perde l'accesso in meno di un minuto.

Esempio di conversazione

Crea un evento ricorrente « Webinaire du dimanche », ogni domenica alle 20:00, community create 3 giorni prima. Poi costruisci una sequenza con un promemoria il giorno prima alle 10:00, un'immagine un'ora prima, un messaggio che menziona tutti alle 19:55 con il link Zoom, e un messaggio replay il giorno dopo alle 10:00. Collegala all'evento e dammi lo smart link.

L'assistente chiama create_event, sync_sequence (dopo averti mostrato i messaggi), link_sequence, poi get_event e restituisce lo smart_link.

In questa pagina