ActiveCampaign
Create ActiveCampaign Deal
Opens a new deal in ActiveCampaign linked to a contact.
Unverified
What the model is told
Create a new deal for an existing ActiveCampaign contact, for example when the customer wants a quote. Confirm the deal title with the customer first. Find the contact's ID first with Find ActiveCampaign Contact by Email. Returns the new deal.
Request
POSThttps://YOUR_ACTIVECAMPAIGN_ACCOUNT.api-us1.com/api/3/deals
Headers
Api-TokenYOUR_ACTIVECAMPAIGN_API_KEYContent-Typeapplication/json
Body
{
"deal": {
"title": "{{title}}",
"description": "{{description}}",
"contact": "{{contactId}}",
"value": 0,
"currency": "gbp",
"group": "YOUR_ACTIVECAMPAIGN_PIPELINE_ID",
"stage": "YOUR_ACTIVECAMPAIGN_STAGE_ID",
"owner": "YOUR_ACTIVECAMPAIGN_OWNER_ID"
}
}Parameters
contactId stringThe ActiveCampaign ID of the contact, from Find ActiveCampaign Contact by Email.title stringA short name for the deal.description stringDetail about what the customer wants.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "9565963a-45ca-4f56-9682-06313a28d389",
"type": "HTTP_REQUEST",
"label": "Create ActiveCampaign Deal",
"name": "create_activecampaign_deal",
"customName": false,
"description": "Create a new deal for an existing ActiveCampaign contact, for example when the customer wants a quote. Confirm the deal title with the customer first. Find the contact's ID first with Find ActiveCampaign Contact by Email. Returns the new deal.",
"parameters": [
{
"name": "contactId",
"type": "string",
"description": "The ActiveCampaign ID of the contact, from Find ActiveCampaign Contact by Email."
},
{
"name": "title",
"type": "string",
"description": "A short name for the deal."
},
{
"name": "description",
"type": "string",
"description": "Detail about what the customer wants."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://YOUR_ACTIVECAMPAIGN_ACCOUNT.api-us1.com/api/3/deals"
},
"headers": [
{
"name": "Api-Token",
"value": "YOUR_ACTIVECAMPAIGN_API_KEY"
},
{
"name": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"deal\": {\n \"title\": \"{{title}}\",\n \"description\": \"{{description}}\",\n \"contact\": \"{{contactId}}\",\n \"value\": 0,\n \"currency\": \"gbp\",\n \"group\": \"YOUR_ACTIVECAMPAIGN_PIPELINE_ID\",\n \"stage\": \"YOUR_ACTIVECAMPAIGN_STAGE_ID\",\n \"owner\": \"YOUR_ACTIVECAMPAIGN_OWNER_ID\"\n }\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.