Created
July 1, 2022 12:30
-
-
Save klapperkopp/c8fb4a01cc7bbf2d31be10bb5aed765c to your computer and use it in GitHub Desktop.
Sample Cooper Template Body
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"to": "RECEIVER_NUMBER", | |
"from": "SENDER_NUMBER", | |
"channel": "whatsapp", | |
"message_type": "custom", | |
"custom": { | |
"type": "template", | |
"template": { | |
"namespace": "3b6524f9_2ce0_4165_afe9_25ad81f5f781", | |
"name": "user_confirmation_cooper", | |
"language": { | |
"policy": "deterministic", | |
"code": "en" | |
}, | |
"components": [ | |
{ | |
"type": "header", | |
"parameters": [ | |
{ | |
"type": "image", | |
"image": { | |
"link": "https://cooper-advertising.com/wp-content/uploads/image-social-facebook.jpg" | |
} | |
} | |
] | |
}, | |
{ | |
"type": "body", | |
"parameters": [ | |
{ | |
"type": "text", | |
"text": "property evaluation" | |
}, | |
{ | |
"type": "text", | |
"text": "House" | |
}, | |
{ | |
"type": "text", | |
"text": "300sqm" | |
}, | |
{ | |
"type": "text", | |
"text": "Max Mustermann" | |
}, | |
{ | |
"type": "text", | |
"text": "max.mustermann@example.com" | |
} | |
] | |
}, | |
{ | |
"type": "button", | |
"sub_type": "quick_reply", | |
"index": 0, | |
"parameters": [ | |
{ | |
"type": "payload", | |
"payload": "verify_no_12345" | |
} | |
] | |
}, | |
{ | |
"type": "button", | |
"sub_type": "quick_reply", | |
"index": 1, | |
"parameters": [ | |
{ | |
"type": "payload", | |
"payload": "verify_yes_12345" | |
} | |
] | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment