Get campaign funnel
get_campaign_statsReturns the outreach funnel for one campaign: invites sent, invites accepted, messages sent, and replies split into positive / negative / other by sentiment. LinkedIn and email are merged, as on Onsa's Overview page. These count leads rather than actions - a lead invited twice counts once - so where a lead was re-invited they read slightly lower than the Overview widget, which counts actions. invitesSent can exceed leadsTotal without anyone having been invited twice: the counters are already de-duplicated by lead, and the gap means a lead who was contacted has since been skipped or deleted, which action rows survive and leadsTotal does not count. Onsa stores no post likes or emoji reactions at all, so 'LinkedIn reactions' in this data means the replies people sent; list_replies returns their text, and this tool only counts them.
rates carries acceptancePct, replyPct, positivePct and negativePct, each already computed over its own correct denominator; leadsTotal is not one of those denominators, since it counts every prospect in the cohort including those never contacted. A rate is null when its denominator is 0, meaning nothing was sent so no rate exists - which is different from the counts above being genuinely 0. All four rates count only replies Onsa has scored, so an unscored or still-in-window reply appears in none of them, and list_replies can legitimately show more replies than the rates imply. Two further properties of the data: the *Scheduled counts are everything queued regardless of date, and sentiment is evaluated once per lead ever rather than once per reply. A campaign whose invites were never sent reads as all zeros, which is 'not tried yet' rather than 'failed'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | Yes | Campaign id, as returned by list_campaigns or fetch_leads |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rates | Yes | ||
| responses | Yes | ||
| campaignId | Yes | ||
| leadsTotal | Yes | ||
| campaignUrl | Yes | ||
| invitesSent | Yes | ||
| messagesSent | Yes | ||
| invitesAccepted | Yes | ||
| invitesScheduled | Yes | ||
| messagesScheduled | Yes |