{
"whatsapp_number": "{{whatsapp_number}}",
"expected_message_template": "{{reference_id}}",
"reference_id": null,
"reply_message_template": "Hi {{APartyDataContactName}}, Thank you for contacting {{AgencyName}}} regarding {{PropertyName}} {{Link}} For our agents to respond quickly please provide us with some extra information",
"intro_message_template": "Hi there, I'm {{ AgentName }}, one of the Area Specialists at haus & haus. Thanks for reaching out regarding {{ PropertyName }}. Please let me know a good time to call and discuss your needs. In the meantime, if you have any questions please feel free to send them over. {{Link}}",
"notify_type": "WHATSAPP",
"notify_to_phone_number": "{{destination_number}}",
"notify_whatsapp_template_name": "agent_lead_confirmation_with_call",
"notify_whatsapp_template_components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "{{AgentName}}"
},
{
"type": "text",
"text": "{{PropertyName}}"
},
{
"type": "text",
"text": "{{PropertyPrice}}"
},
{
"type": "text",
"text": "{{reference_id}}"
},
{
"type": "text",
"text": "{{timeframe}}"
},
{
"type": "text",
"text": "{{finance}}"
},
{
"type": "text",
"text": "{{buyer_type}}"
},
{
"type": "text",
"text": "{{Link}}"
},
{
"type": "text",
"text": "{{APartyDataContactPhonenumber}}"
},
{
"type": "text",
"text": "{{APartyDataContactName}}"
}
]
},
{
"type": "button",
"sub_type": "url",
"parameters": [
{
"type": "text",
"text": "{{intro_chat_shortcode}}"
}
]
},
{
"type": "button",
"sub_type": "url",
"parameters": [
{
"type": "text",
"text": "{{intro_chat_shortcode}}"
}
]
}
],
"notify_delay": 30,
"aparty_notify_whatsapp_template_name": "test_flow_template",
"aparty_notify_whatsapp_template_components": [
{
"type": "button",
"sub_type": "flow",
"index": 0,
"parameters": [
{
"type": "action",
"action": {
"flow_token": "" // put a blank
}
}
]
},
{
"type": "button",
"sub_type": "url",
"index": 1,
"parameters": [
{
"type": "text",
"text": "{{Link}}"
}
]
}
],
"extra_variable_data": {
"AgencyName": "Agency Name",
"AgentName": "Agent Name",
"PropertyPrice": "30000",
"Link": "https://www.sudonum.com",
"APartyDataContactName": " ",
"APartyDataContactPhonenumber": " ",
"PropertyName": "123 fake street",
"timeframe": "", // <-- placeholders for the flow answers
"finance": "", // <-- placeholders for the flow answers
"buyer_type": "" // <-- placeholders for the flow answers
},
"meta_data": {
"key1": "value1"
}
}curl --location 'https://api.sudonum.com.com/v2/whatsapp/chat-intros/' \
--header 'Authorization: Token {{AUTH_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{
"whatsapp_number": "{{whatsapp_number}}",
"expected_message_template": "{{reference_id}}",
"reference_id": null,
"reply_message_template": "Hi {{APartyDataContactName}}, Thank you for contacting {{AgencyName}}} regarding {{PropertyName}} {{Link}} For our agents to respond quickly please provide us with some extra information",
"intro_message_template": "Hi there, I'\''m {{ AgentName }}, one of the Area Specialists at haus & haus. Thanks for reaching out regarding {{ PropertyName }}. Please let me know a good time to call and discuss your needs. In the meantime, if you have any questions please feel free to send them over. {{Link}}",
"notify_type": "WHATSAPP",
"notify_to_phone_number": "{{destination_number}}",
"notify_whatsapp_template_name": "agent_lead_confirmation_with_call",
"notify_whatsapp_template_components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "{{AgentName}}"
},
{
"type": "text",
"text": "{{PropertyName}}"
},
{
"type": "text",
"text": "{{PropertyPrice}}"
},
{
"type": "text",
"text": "{{reference_id}}"
},
{
"type": "text",
"text": "{{timeframe}}"
},
{
"type": "text",
"text": "{{finance}}"
},
{
"type": "text",
"text": "{{buyer_type}}"
},
{
"type": "text",
"text": "{{Link}}"
},
{
"type": "text",
"text": "{{APartyDataContactPhonenumber}}"
},
{
"type": "text",
"text": "{{APartyDataContactName}}"
}
]
},
{
"type": "button",
"sub_type": "url",
"parameters": [
{
"type": "text",
"text": "{{intro_chat_shortcode}}"
}
]
},
{
"type": "button",
"sub_type": "url",
"parameters": [
{
"type": "text",
"text": "{{intro_chat_shortcode}}"
}
]
}
],
"notify_delay": 30,
"aparty_notify_whatsapp_template_name": "test_flow_template",
"aparty_notify_whatsapp_template_components": [
{
"type": "button",
"sub_type": "flow",
"index": 0,
"parameters": [
{
"type": "action",
"action": {
"flow_token": "" // put a blank
}
}
]
},
{
"type": "button",
"sub_type": "url",
"index": 1,
"parameters": [
{
"type": "text",
"text": "{{Link}}"
}
]
}
],
"extra_variable_data": {
"AgencyName": "Agency Name",
"AgentName": "Agent Name",
"PropertyPrice": "30000",
"Link": "https://www.sudonum.com",
"APartyDataContactName": " ",
"APartyDataContactPhonenumber": " ",
"PropertyName": "123 fake street",
"timeframe": "", // <-- placeholders for the flow answers
"finance": "", // <-- placeholders for the flow answers
"buyer_type": "" // <-- placeholders for the flow answers
},
"meta_data": {
"key1": "value1"
}
}'{}