{
"whatsapp_number": "{{whatsapp_number}}",
"expected_message_template": "I like to inquiry about this {{reference_id}}",
"reference_id": "testflowref001interactive",
"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}}",
"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",
"reply_type": "INTERACTIVE",
"reply_whatsapp_components": {
"header": {
"text": "What you would like to do buy today?",
"type": "text"
},
"body": {
"text": "Do you need any help?"
},
"action": {
"name": "flow",
"flow": {
"flow_message_version": "3",
"flow_name": "qualifyingquestions",
"flow_cta": "Get qualified"
}
}
},
"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,
"extra_variable_data": {
"Link": "https://www.sudonum.com",
"website_name": "Sudonum",
"APartyDataContactName": " ",
"APartyDataContactPhonenumber": " ",
"PropertyName": "123 fake street",
"AgentName": "Agent One",
"AgencyName": "Agency Name"
}
}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": "I like to inquiry about this {{reference_id}}",
"reference_id": "testflowref001interactive",
"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}}",
"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",
"reply_type": "INTERACTIVE",
"reply_whatsapp_components": {
"header": {
"text": "What you would like to do buy today?",
"type": "text"
},
"body": {
"text": "Do you need any help?"
},
"action": {
"name": "flow",
"flow": {
"flow_message_version": "3",
"flow_name": "qualifyingquestions",
"flow_cta": "Get qualified"
}
}
},
"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,
"extra_variable_data": {
"Link": "https://www.sudonum.com",
"website_name": "Sudonum",
"APartyDataContactName": " ",
"APartyDataContactPhonenumber": " ",
"PropertyName": "123 fake street",
"AgentName": "Agent One",
"AgencyName": "Agency Name"
}
}'{}