Create Campaign Group
growsurf_create_campaign_groupCreate a participant group on a GrowSurf program to segment affiliates by email, company domain, or existing participant. Each new group copies your Default rewards so you can tailor them per group.
Instructions
Create a group on your GrowSurf program. GrowSurf copies each active Default reward into it, except Leaderboard rewards; change the copies with growsurf_update_campaign_reward. rules place participants: EMAIL matches an exact email, DOMAIN matches a company domain (public email domains are refused), and PARTICIPANT moves an existing participant in now. Each email and domain can be in one group only. Email and domain rules place new signups and affiliate approvals only. Confirm reward amounts with the person before you change the copies. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
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": {
"name": "<name>",
"campaignId": "<campaignId>"
},
"name": "growsurf_create_campaign_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The group name (internal only, never shown to participants). | |
| rules | No | The rules that place participants in this group. Up to 500. | |
| campaignId | Yes | Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The group ID (`grp_…`). | |
| name | No | The group name (internal only, never shown to participants). | |
| order | No | The group's position in the program's group list. | |
| rules | No | The rules that place participants in this group. | |
| createdAt | No | When the group was created, in Unix milliseconds. | |
| updatedAt | No | When the group was last changed, in Unix milliseconds. | |
| signupCode | No | The code for this group's signup link. A participant who signs up through the link joins this group. |