Instantly add leads to your campaign by connecting ChatGPT with a custom webhook.
Automate lead generation using ChatGPT and JSON parsing.
Instantly add leads to your campaign by connecting ChatGPT with a custom webhook.
Automate lead generation using ChatGPT and JSON parsing.
{
"name": "Add leads to your campaign instantly using ChatGPT and a custom webhook",
"flow": [
{
"id": 1,
"module": "gateway:CustomWebHook",
"version": 1,
"parameters": {
"maxResults": 1
},
"mapper": {},
"metadata": {
"designer": {
"x": 0,
"y": 0
},
"restore": {
"parameters": {
"hook": {
"data": {
"editable": "true"
},
"label": "pickaxe"
}
}
},
"parameters": [
{
"name": "hook",
"type": "hook:gateway-webhook",
"label": "Webhook",
"required": true
},
{
"name": "maxResults",
"type": "number",
"label": "Maximum number of results"
}
]
}
},
{
"id": 2,
"module": "openai-gpt-3:CreateCompletion",
"version": 1,
"parameters": {},
"mapper": {
"model": "o3-mini-2025-01-31",
"top_p": "1",
"select": "chat",
"messages": [
{
"role": "user"
}
],
"max_tokens": "2048",
"temperature": "1",
"n_completions": "1",
"response_format": "text"
},
"metadata": {
"designer": {
"x": 300,
"y": 0
},
"restore": {
"expect": {
"stop": {
"mode": "chose"
},
"model": {
"mode": "chose",
"label": "o3-mini-2025-01-31 (system)"
},
"select": {
"label": "Create a Chat Completion (GPT and o1 models)"
},
"messages": {
"mode": "chose",
"items": [
{
"role": {
"mode": "chose",
"label": "User"
}
}
]
},
"logit_bias": {
"mode": "chose"
},
"response_format": {
"mode": "chose",
"label": "Text"
},
"reasoning_effort": {
"mode": "chose",
"label": "Empty"
},
"additionalParameters": {
"mode": "chose"
}
},
"parameters": {
"__IMTCONN__": {
"data": {
"scoped": "true",
"connection": "openai-gpt-3"
},
"label": "Make Ent GPT4"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:openai-gpt-3",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "select",
"type": "select",
"label": "Select Method",
"required": true,
"validate": {
"enum": [
"chat",
"prompt"
]
}
},
{
"name": "temperature",
"type": "number",
"label": "Temperature",
"validate": {
"max": 2,
"min": 0
}
},
{
"name": "top_p",
"type": "number",
"label": "Top P",
"validate": {
"max": 1,
"min": 0
}
},
{
"name": "n_completions",
"type": "number",
"label": "Number"
},
{
"name": "frequency_penalty",
"type": "number",
"label": "Frequency Penalty",
"validate": {
"max": 2,
"min": -2
}
},
{
"name": "presence_penalty",
"type": "number",
"label": "Presence Penalty",
"validate": {
"max": 2,
"min": -2
}
},
{
"name": "logit_bias",
"spec": {
"name": "value",
"spec": [
{
"name": "token",
"type": "text",
"label": "Token ID",
"required": true
},
{
"name": "probability",
"type": "number",
"label": "Probability",
"required": true,
"validate": {
"max": 100,
"min": -100
}
}
],
"type": "collection",
"label": "Token Probability"
},
"type": "array",
"label": "Token Probability"
},
{
"name": "seed",
"type": "integer",
"label": "Seed"
},
{
"name": "stop",
"spec": {
"name": "value",
"type": "text",
"label": "Stop Sequence"
},
"type": "array",
"label": "Stop Sequences",
"validate": {
"maxItems": 4
}
},
{
"name": "additionalParameters",
"spec": {
"name": "value",
"spec": [
{
"name": "key",
"type": "text",
"label": "Parameter Name",
"required": true
},
{
"name": "type",
"type": "select",
"label": "Input Type",
"options": [
{
"label": "Text",
"value": "text",
"nested": [
{
"name": "value",
"type": "text",
"label": "Parameter Value"
}
],
"default": true
},
{
"label": "Number",
"value": "number",
"nested": [
{
"name": "value",
"type": "number",
"label": "Parameter Value"
}
]
},
{
"label": "Boolean",
"value": "boolean",
"nested": [
{
"name": "value",
"type": "boolean",
"label": "Parameter Value"
}
]
},
{
"label": "Date",
"value": "date",
"nested": [
{
"name": "value",
"type": "date",
"label": "Parameter Value"
}
]
},
{
"label": "Any",
"value": "any",
"nested": [
{
"name": "value",
"type": "any",
"label": "Parameter Value"
}
]
}
]
}
],
"type": "collection",
"label": "Input Parameter"
},
"type": "array",
"label": "Other Input Parameters"
},
{
"name": "model",
"type": "select",
"label": "Model",
"required": true
},
{
"name": "max_tokens",
"type": "uinteger",
"label": "Max Completion Tokens"
},
{
"name": "messages",
"spec": {
"name": "value",
"spec": [
{
"name": "role",
"type": "select",
"label": "Role",
"options": {
"store": [
{
"label": "User",
"value": "user",
"nested": [
{
"help": "Text content of the message on behalf of the selected __Role__.",
"name": "content",
"type": "text",
"label": "Text Content"
}
]
},
{
"label": "Assistant",
"value": "assistant",
"nested": [
{
"help": "Text content of the message on behalf of the selected __Role__.",
"name": "content",
"type": "text",
"label": "Text Content"
}
]
},
{
"label": "Developer / System",
"value": "system",
"nested": [
{
"help": "Text content of the message on behalf of the selected __Role__.",
"name": "content",
"type": "text",
"label": "Text Content"
}
]
}
]
},
"required": true
}
],
"type": "collection",
"label": "Message"
},
"type": "array",
"label": "Messages",
"required": true
},
{
"name": "response_format",
"type": "select",
"label": "Response Format",
"validate": {
"enum": [
"text",
"json_object"
]
}
},
{
"name": "reasoning_effort",
"type": "select",
"label": "Reasoning Effort",
"validate": {
"enum": [
"low",
"medium",
"high"
]
}
}
],
"interface": [
{
"name": "result",
"type": "any",
"label": "Result"
},
{
"name": "id",
"type": "text",
"label": "ID"
},
{
"name": "object",
"type": "text",
"label": "Object"
},
{
"name": "created",
"type": "date",
"label": "Created"
},
{
"name": "model",
"type": "text",
"label": "Model"
},
{
"name": "choices",
"spec": {
"spec": [
{
"name": "text",
"type": "text",
"label": "Text"
},
{
"name": "index",
"type": "number",
"label": "Index"
},
{
"name": "logprobs",
"type": "text",
"label": "Log Probs"
},
{
"name": "finish_reason",
"type": "text",
"label": "Finish Reason"
},
{
"name": "message",
"spec": [
{
"name": "role",
"type": "text",
"label": "Role"
},
{
"name": "content",
"type": "text",
"label": "Content"
},
{
"name": "refusal",
"type": "text",
"label": "Refusal"
}
],
"type": "collection",
"label": "Message"
}
],
"type": "collection"
},
"type": "array",
"label": "Choices"
},
{
"name": "usage",
"spec": [
{
"name": "prompt_tokens",
"type": "number",
"label": "Prompt Tokens"
},
{
"name": "completion_tokens",
"type": "text",
"label": "Completion Tokens"
},
{
"name": "total_tokens",
"type": "number",
"label": "Total Tokens"
},
{
"name": "prompt_tokens_details",
"spec": [
{
"name": "cached_tokens",
"type": "uinteger",
"label": "Cached Tokens"
},
{
"name": "text_tokens",
"type": "uinteger",
"label": "Text Tokens"
},
{
"name": "image_tokens",
"type": "uinteger",
"label": "Image Tokens"
},
{
"name": "audio_tokens",
"type": "uinteger",
"label": "Audio Tokens"
}
],
"type": "collection",
"label": "Prompt Tokens Details"
},
{
"name": "completion_tokens_details",
"spec": [
{
"name": "reasoning_tokens",
"type": "uinteger",
"label": "Reasoning Tokens"
},
{
"name": "text_tokens",
"type": "uinteger",
"label": "Text Tokens"
},
{
"name": "audio_tokens",
"type": "uinteger",
"label": "Audio Tokens"
},
{
"name": "accepted_prediction_tokens",
"type": "uinteger",
"label": "Accepted Prediction Tokens"
},
{
"name": "rejected_prediction_tokens",
"type": "uinteger",
"label": "Rejected Prediction Tokens"
}
],
"type": "collection",
"label": "Completion Tokens Details"
}
],
"type": "collection",
"label": "Usage"
},
{
"name": "service_tier",
"type": "text",
"label": "Service Tier"
},
{
"name": "system_fingerprint",
"type": "text",
"label": "System Fingerprint"
}
]
}
},
{
"id": 5,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": ""
},
"mapper": {
"json": "{{2.result}}"
},
"metadata": {
"designer": {
"x": 600,
"y": 0
},
"restore": {
"parameters": {
"type": {
"label": "Choose a data structure"
}
}
},
"parameters": [
{
"name": "type",
"type": "udt",
"label": "Data structure"
}
],
"expect": [
{
"name": "json",
"type": "text",
"label": "JSON string",
"required": true
}
]
}
},
{
"id": 4,
"module": "instantly:addLeadToCampaign",
"version": 1,
"parameters": {},
"mapper": {
"email": "someone@email.com",
"campaign_id": "dabb044c-b0a5-4ccc-996c-16e0f9e36316"
},
"metadata": {
"designer": {
"x": 900,
"y": 0
},
"restore": {
"expect": {
"campaign_id": {
"mode": "chose",
"label": "TEST VB"
},
"custom_variables": {
"mode": "chose"
},
"skip_if_in_workspace": {
"mode": "chose"
}
},
"parameters": {
"__IMTCONN__": {
"data": {
"scoped": "true",
"connection": "instantly"
},
"label": "My Instantly connection"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:instantly",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "campaign_id",
"type": "select",
"label": "Campaign ID",
"required": true
},
{
"name": "email",
"type": "email",
"label": "Lead Email",
"required": true
},
{
"name": "first_name",
"type": "text",
"label": "First Name"
},
{
"name": "last_name",
"type": "text",
"label": "Last Name"
},
{
"name": "company_name",
"type": "text",
"label": "Company Name"
},
{
"name": "personalization",
"type": "text",
"label": "Personalization"
},
{
"name": "phone",
"type": "text",
"label": "Phone"
},
{
"name": "website",
"type": "url",
"label": "Website"
},
{
"name": "custom_variables",
"spec": {
"name": "value",
"spec": [
{
"name": "key",
"type": "text",
"label": "Custom Variable Key"
},
{
"name": "value",
"type": "text",
"label": "Custom Variable Value"
}
],
"type": "collection",
"label": "Custom Variable"
},
"type": "array",
"label": "Custom Variables"
},
{
"name": "skip_if_in_workspace",
"type": "boolean",
"label": "Skip if in Workspace"
}
]
}
}
],
"metadata": {
"instant": true,
"version": 1,
"scenario": {
"roundtrips": 1,
"maxErrors": 3,
"autoCommit": true,
"autoCommitTriggerLast": true,
"sequential": false,
"slots": null,
"confidential": false,
"dataloss": false,
"dlq": false,
"freshVariables": false
},
"designer": {
"orphans": []
},
"zone": "eu2.make.com",
"notes": []
}
}