sf_add_campaign_member
Add a lead or contact to a Salesforce campaign, creating a CampaignMember record to track marketing attribution and engagement.
Instructions
[INSTRUCTIONS] Creates a CampaignMember junction record linking a Lead or Contact to a Campaign. Provide campaignId and either contactId OR leadId (not both). Status defaults to "Sent" but can be set to "Responded", "Registered", etc. based on your campaign member statuses. Returns the created membership record.
Add a lead or contact to a Salesforce marketing campaign for attribution tracking and engagement measurement.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaignId": "<campaignId>"
},
"name": "sf_add_campaign_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | Yes | Campaign ID | |
| contactId | No | Contact ID (provide either this OR leadId) | |
| leadId | No | Lead ID (provide either this OR contactId) | |
| status | No | Member status (default: Sent) |