Categories:
Rendering Aura response components in WhatsApp
Rendering capabilities of WhatsApp channels for every component of Aura response
Introduction
The current document identifies, for every component of Aura response, how aura-bridge converts it to be shown in WhatsApp and the limitations and constraints for this channel.
⚠️
Make sure the channel you are working with is not configured to force a particular list type. Otherwise, you may get unwanted results.
You can find this option in the WhatsApp model, which is part of Aura channel model.
Please go to the aura-configuration-api for further information regarding how to check the current configuration for the channels.
Texts
Users’ utterance
The user’s utterance is not an element to be included in Aura response but, likewise, the channel must render it.
| ID | Description | JSON response | Rendering in WhatsApp |
|---|---|---|---|
| text.utterance.01 | The user inserts a basic sentence | “What data plan do you recommend me?” | ![]() |
| text.utterance.03 | The user inserts a long request | “Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat” | ![]() |
| text.utterance.04 | The user inserts a request with a line break | “Dear Aura, How can I upgrade my bundle?” | ![]() |
| text.utterance.05 | The user inserts a request including hyperlinks | “Can you explain me this offer? https://www.movistar.es/particulares/fusion/inicia-600Mb?pid=clic-boton-meinteresa-corner-movistar-imagenio" | ![]() |
| text.utterance.06 | The user inserts a request including emojis | “Hi 😊” | ![]() |
Insight
| ID | description | JSON components | Command | Rendering in WhatsApp |
|---|---|---|---|---|
| text.insight.01 | Generation of an insight including all the markdown allowed options | Insight 01 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.01"}]} |
![]() |
| text.insight.02 | Generation of an insight with one URL and an image in the preview | Insight 02 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.02"}]} |
![]() |
| text.insight.03 | Generation of an insight including one URL with no image in the preview | Insight 03 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.03"}]} |
![]() |
| text.insight.04 | Generation of an insight including URLs with markdown | Insight 04 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.04"}]} |
![]() |
| text.insight.05 | Generation of an insight text with blank text | Insight 05 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.05"}]} |
![]() |
| text.insight.06 | Generation of an insight including long text | Insight 06 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.06"}]} |
![]() |
| text.insight.07 | Generation of an insight with very long words | Insight 07 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.07"}]} |
![]() |
| text.insight.08 | Generation of an insight with long text (more than 4096 characters) | Insight 08 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.08"}]} |
![]() |
| text.insight.09 | Generation of an insight with simple text | Insight 09 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.09"}]} |
![]() |
| text.insight.10 | Generation of an insight including text with a URL and an image in the preview | Insight 10 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.10"}]} |
![]() |
| text.insight.11 | Generation of an insight including text with a URL and with no image in the preview | Insight 11 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.11"}]} |
![]() |
| text.insight.12 | Generation of an insight with two URLs | Insight 12 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.12"}]} |
![]() |
| text.insight.13 | Generation of an insight with specific characters used in different use cases in OBS | Insight 13 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.13"}]} |
![]() |
| text.insight.14 | Generation of an insight including a text and a YouTube or Vimeo URL | Insight 14 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.14"}]} |
![]() |
| text.insight.15 | Generation of an insight with a list-format text | Insight 15 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"insight","entity":"text.insight.15"}]} |
![]() |
Cards
Adaptive Cards
WhatsApp channel is not able to render Adaptive Cards.
Hero Cards
| ID | description | JSON components | Command | Rendering in Whatsapp |
|---|---|---|---|---|
| card.hero.01 | Hero card including tittle, sub-tittle and image | Hero Card 01 JSON file | {"intent":"intent.factotum-test.hero-card-01"} |
![]() |
| card.hero.02 | Hero card including tittle, sub-tittle, image and URL | Hero Card 02 JSON file | {"intent":"intent.factotum-test.hero-card-02"} |
![]() |
| card.hero.03 | Hero card including tittle, image and URL | Hero Card 03 JSON file | {"intent":"intent.factotum-test.hero-card-03"} |
![]() |
| card.hero.04 | Hero card including title, subtitle and URL (without text) | Hero Card 04 JSON file | {"intent":"intent.factotum-test.hero-card-04"} |
![]() |
| card.hero.05 | Hero card including title, subtitle and URL | Hero Card 05 JSON file | {"intent":"intent.factotum-test.hero-card-05"} |
![]() |
| card.hero.06 | Hero card including title | Hero Card 06 JSON file | {"intent":"intent.factotum-test.hero-card-06"} |
![]() |
| card.hero.07 | Hero card with text containing a URL | Hero Card 07 JSON file | {"intent":"intent.factotum-test.hero-card-07"} |
![]() |
| card.hero.08 | Hero card with image | Hero Card 08 JSON file | {"intent":"intent.factotum-test.hero-card-08"} |
![]() |
| card.hero.09 | Hero card with an image in format different from jpeg and png | Hero Card 09 JSON file | {"intent":"intent.factotum-test.hero-card-09"} |
![]() |
| card.hero.10 | Hero card including an empty list of images | Hero Card 10 JSON file | {"intent":"intent.factotum-test.hero-card-10"} |
![]() |
| card.hero.11 | Hero card including a list of images with wrong URLs | Hero Card 11 JSON file | {"intent":"intent.factotum-test.hero-card-11"} |
![]() |
| card.hero.12 | Hero card with a list of images | Hero Card 2 JSON file | {"intent":"intent.factotum-test.hero-card-12"} |
![]() |
| card.hero.13 | 3 Hero cards (array of cards) | Hero Card 13 JSON file | {"intent":"intent.factotum-test.hero-card-13"} |
![]() |
| card.hero.14 | Hero card with title and URL | Hero Card 14 JSON file | {"intent":"intent.factotum-test.hero-card-14"} |
![]() |
| card.hero.15 | Hero card with title, subtitle and text | Hero Card 15 JSON file | {"intent":"intent.factotum-test.hero-card-15"} |
![]() |
| card.hero.16 | Hero card with activity as text | Hero Card 16 JSON file | {"intent":"intent.factotum-test.hero-card-16"} |
![]() |
| card.custom | HeroCard (suggestion) with 3 options to show reply buttons | Custom card 01 JSON file | {"intent":"intent.factotum-test.hero-card-custom-dialog", "entities": [{"entity": "0", "type": "heroCards"}, {"entity": "3", "type": "options"}, {"entity": "20", "type": "charactersByOption"}, {"entity":"{\"type\":\"button\"}", "type":"whatsappListOptions"}]} |
![]() |
| card.custom | HeroCard (suggestion) with 5 options to show a WhatsApp list messages | Custom card 02 JSON file | {"intent":"intent.factotum-test.hero-card-custom-dialog", "entities": [{"entity": "0", "type": "heroCards"}, {"entity": "5", "type": "options"}, {"entity": "20", "type": "charactersByOption"}, {"entity":"{\"type\":\"list\"}", "type":"whatsappListOptions"}]} |
![]() |
| card.custom | HeroCard (suggestion) with 5 options to show an enumerated text list | Custom card 03 JSON file | {"intent":"intent.factotum-test.hero-card-custom-dialog", "entities": [{"entity": "0", "type": "heroCards"}, {"entity": "12", "type": "options"}, {"entity": "20", "type": "charactersByOption"}, {"entity":"{\"type\":\"enumeratedList\"}", "type":"whatsappListOptions"}]} |
![]() |
| card.custom | HeroCard with no images and suggestions with 2 reply buttons | Custom card 04 JSON file | {"intent":"intent.factotum-test.hero-card-custom-dialog", "entities": [{"entity": "simple", "type": "profile"}, {"entity": "2", "type": "options"}, {"entity": "20", "type": "charactersByOption"}, {"entity":"{\"type\":\"button\"}", "type":"whatsappListOptions"}]} |
![]() |
| card.custom | 2 HeroCard with images and suggestions with 5 options to show as WhatsApp list messages | Custom card 05 JSON file | {"intent":"intent.factotum-test.hero-card-custom-dialog", "entities": [{"entity": "default", "type": "profile"}, {"entity": "5", "type": "options"}, {"entity": "20", "type": "charactersByOption"}, {"entity":"{\"type\":\"button\"}", "type":"whatsappListOptions"}]} |
![]() |
Templates
| ID | description | Curl/JSON | Rendering in WhatsApp |
|---|---|---|---|
| test_global_aura_plain_text_no_header | Template containing a body with an explanatory text (unique mandatory element in a template) | Template 01 Curl file Template 01 JSON file |
![]() |
| test_global_aura_plain_text_with_header_and_deeplink | Template containing: - Header (title) - Body (explanatory text) - Deeplink button |
Template 02 Curl file Template 02 JSON file |
![]() |
| test_global_aura_header_imagen_body_quick_reply | Template containing: - Header (title) - Body (explanatory text) - Quick reply text |
Template 03 Curl file | ![]() |
| test_global_aura_account_update_body_two_buttons | Template containing: - Header including text with parameters - Body with parameters - Footers without parameters - Deeplink button - CTA (call-to-action) |
Template 04 Curl file | ![]() |
| test_global_aura_header_document_body | Template containing: - Header with a file - Body with parameters |
Template 05 Curl file | ![]() |
| test_global_aura_header_video_body_footer_tree_buttons | Template containing: - Header with a video - Body (explanatory text) - Footer - Quick reply buttons (max. 3 buttons) |
Template 06 Curl file | ![]() |
| pnuevo_ofrecimiento_sinvincular_v6 | Template containing: - Body with parameters - 2 quick reply buttons |
Template 05 JSON file | ![]() |
| pnuevo_aceptacion_sinvincular_v2 | Template containing: - Body with parameters - 2 quick reply buttons |
Template 06 JSON file | ![]() |
Buttons
Suggestions
| ID | Description | JSON components | Command | Rendering in WhatsApp |
|---|---|---|---|---|
| button.suggestion.01 | Generation of basic suggestions with recommendations | Suggestion 01 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.suggestion.01"}]} |
![]() |
| button.suggestion.02 | Generation of suggestions with texts longer than 80 characters (recommended length) | Suggestion 02 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.suggestion.02"}]} |
![]() |
| button.suggestion.03 | More than 3 suggestions | Suggestion 03 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.suggestion.03"}]} |
![]() |
| button.suggestion.04 | Empty suggestions | Suggestion 04 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.suggestion.04"}]} |
![]() |
| button.suggestion.05 | Suggestions with blank text | Suggestion 05 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.suggestion.05"}]} |
![]() |
Actions
| ID | Description | JSON components | Command | Rendering in WhatsApp |
|---|---|---|---|---|
| button.Actions.01 | Generation of actions (yes/no) | Actions 01 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.actions.01"}]} |
![]() |
| button.Actions.02 | Generation of recommended basic actions | Actions 02 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.actions.02"}]} |
![]() |
| button.Actions.03 | Generation of actions with texts longer than 70 characters (recommended length) | Actions 03 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.actions.03"}]} |
![]() |
| button.Actions.04 | More than 3 actions | Actions 04 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.actions.04"}]} |
![]() |
| button.Actions.05 | Empty actions | Actions 05 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.actions.05"}]} |
![]() |
| button.Actions.06 | Actions with blank text | Actions 06 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.actions.06"}]} |
![]() |
External buttons
| ID | Description | JSON components | Command | Rendering in WhatsApp |
|---|---|---|---|---|
| button.external.01 | Basic link to an external page | External button 01 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.external.01"}]} |
![]() |
| button.external.02 | Link buttons with texts longer than 20 characters | External button 02 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.external.02"}]} |
![]() |
| button.external.03 | More than 1 link | External button 03 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.external.03"}]} |
![]() |
| button.external.04 | Blank links | External button 04 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.external.04"}]} |
![]() |
| button.external.05 | Links with blank text | External button 05 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.external.05"}]} |
![]() |
| button.external.06 | Blank URL | External button 06 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.external.06"}]} |
![]() |
| button.external.07 | Link buttons with texts longer than 20 characters (recommended length) in markdown format | External button 07 JSON file | {"intent":"intent.factotum-test.whatsapp-formats","entities":[{"type":"buttons","entity":"button.external.07"}]} |
![]() |
Combination of elements in Aura response
| ID | Description | JSON components | Command | Rendering in WhatsApp |
|---|---|---|---|---|
| Mix.message.01 | message 1: Insight message 2: Hero card message 3: Suggestions with 1-3 options and less than 20 characters |
Mix message 01 JSON files | {"intent":"intent.factotum-test.mix-message-01"} |
According to default configuration. The use case or channel can change this configuration and use lists or numbered messages in suggestions. Remember that, currently, options in cards are not compatible with list messages or reply buttons. |
| Mix.message.02 | message 1: Insight message 2: Herocards message 3: suggestions with 4-10 options and less than 20 characters |
Mix message 02 JSON files | {"intent":"intent.factotum-test.mix-message-02"} |
According to default configuration. The use case or channel can change this configuration and use numbered messages in suggestions. Remember that, currently, options in cards are not compatible with list messages or reply buttons. |
| Mix.message.03 | message 1: Insight message 2: Herocards message 3: suggestions with more than 10 options and/or more than 20 characters |
Mix message 03 JSON files | {"intent":"intent.factotum-test.mix-message-03"} |
According to default configuration. Remember that, currently, options in cards are not compatible with list messages or reply buttons. |
| Mix.message.05 | message 1: HeroCards message 2: Herocards message 3: Herocards Message 4: suggestion |
Mix message 05 JSON files | {"intent":"intent.factotum-test.mix-message-05"} |
According to default configuration, depending on the number of suggestions (options) and the character. For less than 3 options and less than 20 characters, we use reply buttons. The use case or channel can change this configuration and use lists or numbered messages in suggestions. Currently, options in cards are not compatible with list messages or reply buttons. |
Restrictions in the response from WhatsApp channel
There are certain components that are not allowed by WhatsApp channel. Thus, if they are sent as part of the response, WhatsApp will show an error to the user. The error message is configurable by POEditor, as explained in the document Error management in WhatsApp channel.
| Aura response component | Aura response sub-component | Behaviors not allowed by WhatsApp |
|---|---|---|
| Texts | Insight | Generation of an insight including blank text. |
| Texts | Insight | Generation of an insight with long text of more than 4096 characters. |
| Cards | Adaptive Cards | WhatsApp channel does not support Adaptive Cards. |
| Cards | Hero Cards | Hero card including an image with format different from jpeg and png. |
| Cards | Hero Cards | Hero card with an empty list of images. |
| Cards | Hero Cards | Hero card including a list of images with wrong URLs formats. |
JSON components
Insights
Insight 01 JSON file
{
"text": "I'm here to **help** you, if you want to see more _examples_ of ~~consultation~~, ```click``` the question +mark+."
}
Insight 02 JSON file
{
"text": "https://ver.movistarplus.es"
}
Insight 03 JSON file
{
"text": "www.movistar.es/particulares/Aura"
}
Insight 04 JSON file
{
"text": "Aura can answers with texts that can also contain [markdown links](https://ver.movistarplus.es/)\n\nLet's [see](www.google.es) [how](www.yahoo.com) they are rendered in the different channels."
}
Insight 05 JSON file
{
"text": "",
}
Insight 06 JSON file
{
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras nunc elit, auctor ut lectus vel, blandit eleifend turpis. Nam malesuada cursus arcu. Pellentesque eu magna non lectus eleifend mattis in nec libero. Quisque lacinia eget ligula aliquam accumsan. Mauris elementum, leo sed commodo convallis, risus purus mollis erat, vel tristique ex sapien nec nunc. Proin venenatis leo id enim tempus porttitor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Ut sit amet mi sed eros molestie varius. Vivamus at purus neque. Suspendisse malesuada mi at interdum consectetur. Nulla facilisi. Curabitur eros enim, ornare in diam quis, auctor aliquet felis.\n\nPellentesque cursus sapien ut lorem vehicula vestibulum. Suspendisse convallis malesuada vehicula. Nulla ut leo sit amet risus congue facilisis ut at tellus. Quisque erat metus, consequat id leo non, vulputate auctor est. Ut nec viverra felis. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus leo ante, dictum vitae ornare et, mattis vitae neque. Integer sit amet auctor eros. Sed at erat mauris. Phasellus quis commodo quam. Phasellus vel mattis felis. In quis eleifend lacus. Phasellus in felis leo. Mauris ultricies nec eros eget pulvinar. Nulla pellentesque hendrerit elementum. Donec cursus scelerisque sem, at."
}
Insight 07 JSON file
{
"text": "Loremipsumdolorsitamet, consecteturadipiscingelit. Crasnuncelit, auctorutlectusvel, blanditeleifendturpis. Nammalesuadacursusarcu. Pellentesqueeu magnanonlectuseleifendmattisinneclibero. Quisquelaciniaeget ligulaaliquamaccumsan."
}
Insight 08 JSON file
{
"text": "...long.text"
}
Insight 09 JSON file
{
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios."
}
Insight 10 JSON file
{
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios. This test try to understand how the channel render different links included in the message. https://ver.movistarplus.es"
}
Insight 11 JSON file
{
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios. This test try to understand how the channel render different links included in the message. https://www.movistar.es/particulares/Aura"
}
Insight 12 JSON file
{
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios. This test try to understand how the channel render different links included in the message. https://www.movistar.es/particulares/Aura, La nueva URL seria esta http://ver.movistarplus.es/"
}
Insight 13 JSON file
{
"text": "Sample response including order characters:\n\n• Service-Hotline [0176 888 55 282](tel:+4917688855282). Talk on the phone!.\n\n• Talk with our online chat [Live-Chat](https://g.o2.de/aura-chat-service)\n\n• Send us an email to [our email](mailto:pallete@telefonica.es)"
}
Insight 14 JSON file
{
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios. This test try to understand how the channel render different links included in the message. https://youtu.be/7RHRRdaqExY"
}
Insight 15 JSON file
{
"text": "Actions that Aura can do for you:\n\n**1.**\t One choice type string\r\n**2.**\t One choice type Choice\r\n**3.**\t Two text messages\n**4.**\t HeroCard\n**5.**\t AdaptiveCard\n**6.**\t Suggestions"
}
Hero Cards
Hero Card 01 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**iPhone 7 Apple iPhone**",
"subtitle": "**Price:**",
"text": "**Description**: \n7,11,9 cm (4,7) / 128 GB / 25\n Megapixel camera / Retina display / Apple red Product",
"images": [
{
"url": "iphone_red.png"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 02 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**iPhone 7 Apple iPhone**",
"subtitle": "**Price**:",
"text": "**Description**: \n7,11,9 cm (4,7) / 128 GB / 25\n Megapixel camera / Retina display / Apple red Product",
"images": [
{
"url": "https://jira.tid.es/secure/attachment/1778109/Group%2043%403x.png"
}
],
"buttons": [
{
"type": "openUrl",
"value": "https://www.movistar.es/",
"title": "Check Movistar app for more details"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 03 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**iPhone 7 Apple iPhone**",
"text": "**Description**: \n7,11,9 cm (4,7) / 128 GB / 25\n Megapixel camera / Retina display / Apple red Product",
"images": [
{
"url": "https://jira.tid.es/secure/attachment/1778109/Group%2043%403x.png"
}
],
"buttons": [
{
"type": "openUrl",
"value": "https://www.movistar.es/",
"title": "Check Movistar app for more details"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 04 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "_Fusion Plan_",
"subtitle": "**Activated on the 12/11/2020**",
"buttons": [
{
"type": "openUrl",
"value": "https://www.movistar.es/bundle_details.html",
"title": "Check Movistar app for more details"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 05 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "_Fusion Plan_",
"subtitle": "**Activated on the 12/11/2020**:",
"text": "**$35,00 Monthly fee**\n**$25,00 Comsumption**\n**$5,00 Taxes",
"buttons": [
{
"type": "openUrl",
"value": "https://www.movistar.es/bundle_details.html",
"title": "Check Movistar app for more details"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 06 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "_Fusion Plan_",
"text": "Unlimited calls on landline and mobile 25GB data on mobile"
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 07 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios. This test try to understand how the channel render different links included in the message. https://aura.telefonica.com/es/",
"images": [
{
"url": "https://jira.tid.es/secure/attachment/1778109/Group%2043%403x.png"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 08 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios.",
"images": [
{
"url": "https://jira.tid.es/secure/attachment/1778109/Group%2043%403x.png"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 09 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios.",
"images": [
{
"url": "https://media.tenor.com/images/c51500433e6f6fff5a8c362335bc8242/tenor.gif"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 10 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios",
"images": [
{
"url": ""
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 11 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios",
"images": [
{
"url": "https://www.telefoa"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 12 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios. This test try to understand how the channel render different links included in the message. https://aura.telefonica.com/es/",
"images": [
{
"url":"https://www.telefonica.com/documents/23283/145847600/Movistar-azul-horizontal-thumbnail.jpg/fe991fa4-368f-72fe-ae8a-39f1db7ad638?t=1587395483934",
"url":"https://www.telefonica.com/documents/153952/154445/lgo_o2_at.png/3d0e2966-1cd5-49e2-8ac8-59ce69768bc4?t=1438154882691",
"url":"https://www.telefonica.com/documents/23283/139117659/Vivo-logo-thumbnail.jpg/e311e281-9c90-0a79-6531-aa357740a63f?version=1.1&t=1577957654404"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 13 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**iPhone 7 Apple iPhone**",
"text": "**Description**: \n7,11,9 cm (4,7) / 128 GB / 25\n Megapixel camera / Retina display / Apple red Product\n\n\n**Price: 512,34$**",
"images": [
{
"url": "https://jira.tid.es/secure/attachment/1778109/Group%2043%403x.png"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**Samsung Galaxy S21 Ultra 5G**",
"text": "**Description**: \n7,11,9 cm (4,7) / 128 GB / 25\n Megapixel camera / Retina display / Apple red Product\n\n\n**Price: 405,50$**",
"images": [
{
"url": "https://images.samsung.com/my/smartphones/galaxy-s21/buy/s21_family_kv_pc_img.jpg?imwidth=2560"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**Apple iPhone 12 Pro Max 5G**",
"text": "**Description**: \n7,11,9 cm (4,7) / 128 GB / 25\n Megapixel camera / Retina display / Apple red Product\n\n\n**Price: 905,50$**",
"images": [
{
"url": "https://www.apple.com/newsroom/images/product/iphone/standard/Apple_iphone12pro-pacific-blue_10132020_Full-Bleed-Image.jpg.large_2x.jpg"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 14 JSON file
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**iPhone 7 Apple iPhone**",
"text": "**Description**: \n7,11,9 cm (4,7) / 128 GB / 25\n Megapixel camera / Retina display / Apple red Product",
"buttons": [
{
"type": "openUrl",
"value": "https://www.movistar.es/",
"title": "Check Movistar app for more details"
}
]
}
}
]
Hero Card 15 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**iPhone 7 Apple iPhone**",
"subtitle": "**Price**:",
"text": "**Description**: \n7,11,9 cm (4,7) / 128 GB / 25\n Megapixel camera / Retina display / Apple red Product"
}
}
],
"inputHint": "acceptingInput"
}
}
}
Hero Card 16 JSON file
{
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios.",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"text": "This is a bodycopy to test different scenarios and the channel behaviour for this scenarios.",
"images": [
{
"url": "https://jira.tid.es/secure/attachment/1778109/Group%2043%403x.png"
}
]
}
}
]
}
Custom card 01 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "postBack",
"title": "Fake suggestion 1___",
"value": {
"name": "Fake suggestion 1___",
"text": "Fake suggestion 1___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_1",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 2___",
"value": {
"name": "Fake suggestion 2___",
"text": "Fake suggestion 2___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_2",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 3___",
"value": {
"name": "Fake suggestion 3___",
"text": "Fake suggestion 3___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_3",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
}
]
},
"name": "SUGGESTIONS"
}
]
}
}
}
Custom card 02 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "postBack",
"title": "Fake suggestion 1___",
"value": {
"name": "Fake suggestion 1___",
"text": "Fake suggestion 1___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_1",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 2___",
"value": {
"name": "Fake suggestion 2___",
"text": "Fake suggestion 2___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_2",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 3___",
"value": {
"name": "Fake suggestion 3___",
"text": "Fake suggestion 3___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_3",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 4___",
"value": {
"name": "Fake suggestion 4___",
"text": "Fake suggestion 4___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_4",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 5___",
"value": {
"name": "Fake suggestion 5___",
"text": "Fake suggestion 5___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_5",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
}
]
},
"name": "SUGGESTIONS"
}
]
}
}
}
Custom card 03 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "postBack",
"title": "Fake suggestion 1___",
"value": {
"name": "Fake suggestion 1___",
"text": "Fake suggestion 1___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_1",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 2___",
"value": {
"name": "Fake suggestion 2___",
"text": "Fake suggestion 2___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_2",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 3___",
"value": {
"name": "Fake suggestion 3___",
"text": "Fake suggestion 3___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_3",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 4___",
"value": {
"name": "Fake suggestion 4___",
"text": "Fake suggestion 4___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_4",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 5___",
"value": {
"name": "Fake suggestion 5___",
"text": "Fake suggestion 5___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_5",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 6___",
"value": {
"name": "Fake suggestion 6___",
"text": "Fake suggestion 6___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_6",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 7___",
"value": {
"name": "Fake suggestion 7___",
"text": "Fake suggestion 7___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_7",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 8___",
"value": {
"name": "Fake suggestion 8___",
"text": "Fake suggestion 8___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_8",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 9___",
"value": {
"name": "Fake suggestion 9___",
"text": "Fake suggestion 9___",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_9",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 10__",
"value": {
"name": "Fake suggestion 10__",
"text": "Fake suggestion 10__",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_10",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 11__",
"value": {
"name": "Fake suggestion 11__",
"text": "Fake suggestion 11__",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_11",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
},
{
"type": "postBack",
"title": "Fake suggestion 12__",
"value": {
"name": "Fake suggestion 12__",
"text": "Fake suggestion 12__",
"type": "suggestion",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "fake_entity_suggestion_12",
"type": "ent.dialog-context"
}
],
"inputIntent": "intent.factotum-test.hero-card-custom-dialog"
}
}
]
},
"name": "SUGGESTIONS"
}
]
}
}
}
Custom card 04 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"title": "**iPhone Apple iPhone**",
"text": "**Description:** \n128 GB / Retina display / Apple red Product",
"buttons": [
{
"type": "postBack",
"title": "Reserve iPhone 1",
"value": {
"name": "Reserve iPhone 1",
"text": "Reserve iPhone 1",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"inputIntent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "buy-iphone1",
"type": "ent.dialog-context"
}
]
}
},
{
"type": "postBack",
"title": "Reserve iPhone 2",
"value": {
"name": "Reserve iPhone 2",
"text": "Reserve iPhone 2",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"inputIntent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "buy-iphone2",
"type": "ent.dialog-context"
}
]
}
}
]
}
}
]
}
}
}
Custom card 05 JSON file
{
"card": {
"hero": {
"type": "message",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"subtitle": "**Price**: 999$",
"title": "**iPhone Apple iPhone**",
"text": "**Description:** \n128 GB / Retina display / Apple red Product",
"images": [
{
"url": "https://auraapnext8b2fe33b24.blob.core.windows.net/static-resources/libraries/factotum/default/images/iphone_red.png?sv=2018-11-09&si=static-resources-policy-ap-next&sr=c&sig=wtTBj9PX85%2BZiaJZIB4UqjnZh9BoU1acXcy8RyLp5kA%3D"
}
],
"buttons": [
{
"type": "postBack",
"title": "Reserve iPhone 1",
"value": {
"name": "Reserve iPhone 1",
"text": "Reserve iPhone 1",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"inputIntent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "buy-iphone1",
"type": "ent.dialog-context"
}
]
}
},
{
"type": "postBack",
"title": "Reserve iPhone 2",
"value": {
"name": "Reserve iPhone 2",
"text": "Reserve iPhone 2",
"intent": "intent.factotum-test.hero-card-custom-dialog",
"inputIntent": "intent.factotum-test.hero-card-custom-dialog",
"entities": [
{
"entity": "buy-iphone2",
"type": "ent.dialog-context"
}
]
}
}
]
}
}
]
}
}
}
Templates
Template 01 Curl file
curl -X POST \
'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/message_templates' \
-d 'category=AUTO_REPLY' \
-d 'components: [{"type":"BODY","text":"Hi, I'm Aura.\nYour virtual assistant fom O2. Get personalised support, Get personalised support, view your bills and find out how much data you've got left. I am here to help!"}]' \
-d 'name=test_global_aura_plain_text_no_header' \
-d 'access_token=<your-access-token>' \
-d 'language=en_US'
Template 01 JSON file
{
"name": "test_global_aura_plain_text_no_header",
"components": [
{
"type": "BODY",
"text": "Hola, soy Aura.\nTu asistente virtual de O2. Obtén asistencia personalizada, consulta tus facturas y averigua cuántos datos te quedan. Estoy aquí para ayudarte."
}
],
"language": "es_ES",
"status": "APPROVED",
"category": "AUTO_REPLY",
"id": "160734422709987"
}
Template 02 Curl file
curl -X POST \
'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/message_templates' \
-d 'category=AUTO_REPLY' \
-d 'components: [{"type":"BODY","text":"Before we carry on, I want you to know that your privacy is very important to me and I'm committed to look after your personal data."},{"type":"HEADER","format":"TEXT","text":"Your privacy matters"},{"type":"BUTTONS","buttons":[{"type":"URL","text":"Review terms and conditions","url":"https://www.movistar.es/particulares/centro-de-privacidad/"}]}]' \
-d 'name=test_global_aura_plain_text_with_header_and_deeplink' \
-d 'access_token=<your-access-token>' \
-d 'language=en_US'
Template 02 JSON file
{
"name": "test_global_aura_plain_text_with_header_and_deeplink",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Tu privacidad es importante"
},
{
"type": "BODY",
"text": "Antes de continuar, quiero que sepas que tu privacidad es muy importante para mí y me comprometo a cuidar tus datos personales."
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "URL",
"text": "Términos y condiciones",
"url": "https://www.movistar.es/particulares/centro-de-privacidad/"
}
]
}
],
"language": "es_ES",
"status": "APPROVED",
"category": "AUTO_REPLY",
"id": "394312125348217"
}
Template 03 Curl file
curl -X POST \
'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/message_templates' \
-d 'category=AUTO_REPLY' \
-d 'components: [{"type":"BODY","text":"Hello, I'm Aura.\nYour virtual assistant from O2.\nI am contacting you to resolve the query *{{1}}* that you have made *{{2}}*.","example":{"body_text":[["about your bill","your call to 1004"]]}},{"type":"HEADER","format":"IMAGE","text":"https://{{1}}.blob.core.windows.net/static-resources/libraries/factotum/default/images/{{2}}?sv=2018-11-09&si={{3}}&sr=c&sig={{4}}","example":{"header_text":["auraapnext8b81ad27c3","iphone-12.png","aura-configuration-policy-ap-next","X53fPBD3fLZ4LqPVb8aeNJtTnj2O1nNfkyUVF3G/tMA%3D"]}},{"type":"BUTTONS","buttons":[{"type":"QUICK_REPLY","text":"Continue","example":"{ \"intent\": \"intent.common.greetings\" }"}]}]' \
-d 'name=header_imagen_body_quick_reply' \
-d 'access_token=<your-access-token>' \
-d 'language=en_US'
Template 04 Curl file
curl -X POST \
'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/message_templates' \
-d 'category=ACCOUNT_UPDATE' \
-d 'components=[{"type":"BODY","text":"*Number: {{1}}*\nHey! You have {{2}} left from your {{3}} data allowance valid until {{4}}","example":{"body_text":[["+34 619866335","500 Mb","5 Gb","20/07/21"]]}},{"type":"FOOTER","text":"Type \"Next\" if you want to see more of your lines"},{"type":"BUTTONS","buttons":[{"type":"PHONE_NUMBER","text":"Call us","phone_number":"+34 619866335"},{"type":"URL","text":"More details","url":"https://www.movistar.es"}]}]' \
-d 'name=test_global_aura_account_update_body_two_buttons' \
-d 'access_token=<your-access-token>' \
-d 'language=en_US'
Template 05 Curl file
curl -X POST \
'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/message_templates' \
-d 'category=AUTO_REPLY' \
-d 'components: [{"type":"BODY","text":"Your last bill is *{{1}}€*.\nClick to download and see the details.","example":{"body_text":[["58"]]}},{"type":"HEADER","format":"DOCUMENT","text":"https://{{1}}.blob.core.windows.net/static-resources/libraries/factotum/default/whatsapp-files/{{2}}?sv=2018-11-09&si={{3}}&sr=c&sig={{4}}","example":{"header_text":["auraapnext8b81ad27c3","PDF_Vertical.pdf","aura-configuration-policy-ap-next","X53fPBD3fLZ4LqPVb8aeNJtTnj2O1nNfkyUVF3G/tMA%3D"]}}]' \
-d 'name=test_global_aura_header_document_body' \
-d 'access_token=<your-access-token>' \
-d 'language=en_US'
Template 06 Curl file
curl -X POST \
'https://graph.facebook.com/v3.3/your-whatsapp-business-account-id/message_templates' \
-d 'category=ISSUE_RESOLUTION' \
-d 'components=[{"type":"BODY","text":"If you have problems with your internet connection, follow the steps explained in the video.\n\nHas the problem been solved?"},{"type":"HEADER","format":"VIDEO"},{"type":"FOOTER","text":"Only for UHD decos"},{"type":"BUTTONS","buttons":[{"type":"QUICK_REPLY","text":"Yes"},{"type":"QUICK_REPLY","text":"Not yet"},{"type":"QUICK_REPLY","text":"Talk to an agent"}]}]' \
-d 'name=test_global_aura_header_video_body_footer_tree_buttons' \
-d 'access_token=<your-access-token>' \
-d 'language=en_US'
Template 05 JSON file
{
"name": "pnuevo_ofrecimiento_sinvincular_v6",
"components": [
{
"type": "BODY",
"text": "El producto que te propongo es {{1}} que incluye:\n\n- Fijo: {{2}}\n- Móvil: {{3}}\n- Internet: {{4}}\n- Televisión: {{5}}\n- Smartphone gama {{6}}\n\nY todo esto por {{7}}€/mes (IVA incluido).\n\n¿Te interesa este producto?"
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "QUICK_REPLY",
"text": "Sí"
},
{
"type": "QUICK_REPLY",
"text": "No, quiero ver otros"
}
]
}
],
"language": "es_ES",
"status": "APPROVED",
"category": "ACCOUNT_UPDATE",
"id": "323717239403265"
}
Template 06 JSON file
{
"name": "pnuevo_aceptacion_sinvincular_v2",
"components": [
{
"type": "BODY",
"text": "{{1}} a {{2}} y NIF{{3}}, solicitas el cambio a:\n\nFijo: {{4}}\nMóvil: {{5}}\nInternet: {{6}}\nTV: {{7}}\n\nArrendamiento a 36 meses de un terminal nivel {{8}}. En caso de devolución o baja anticipada se aplican las Condiciones Generales de Arrendamiento de Terminal Móvil en Fusión. Consulta los modelos en {{9}}\n\nPrecio: {{10}}€/mes (Precios con IVA)\n\nAceptas recibir tus facturas en formato electrónico. Puedes solicitar cambio a papel cuando desees. \n\nCondiciones del servicio y política de privacidad: movistar.es/contratos y movistar.es/privacidad. \n\nAutorizas a hacer los cargos en tu cuenta bancaria.\n\nSi estás conforme pulsa “Acepto”"
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "QUICK_REPLY",
"text": "Acepto"
},
{
"type": "QUICK_REPLY",
"text": "Consultar a agente"
}
]
}
],
"language": "es_ES",
"status": "APPROVED",
"category": "ACCOUNT_UPDATE",
"id": "4208428555858233"
}
Suggestions
Suggestion 01 JSON file
{
"type": "message",
"text": "This is button.suggestion.01.",
"attachmentLayout": "SUGGESTIONS",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"text": "This is button.suggestion.01.",
"buttons": [
{
"type": "imBack",
"title": "Top up"
},
{
"type": "imBack",
"title": "Talk with agent"
},
{
"type": "imBack",
"title": "My invoice"
}
]
}
}
],
"inputHint": "expectingInput"
}
Suggestion 02 JSON file
{
"button.suggestion.02": {
"type": "message",
"text": "This is button.suggestion.02.",
"attachmentLayout": "SUGGESTIONS",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "postBack",
"title": "Suggestion with 30 characters."
},
{
"type": "postBack",
"title": "This suggestion contains 50 characters, dont do it"
},
{
"type": "postBack",
"title": "This suggestion contains way more than 100 characters. Never do this please. User experience is horrible"
}
]
}
}
],
"inputHint": "expectingInput"
}
}
Suggestion 03 JSON file
{
"button.suggestion.03": {
"type": "message",
"text": "This is button.suggestion.03.",
"attachmentLayout": "SUGGESTIONS",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "postBack",
"title": "Hola"
},
{
"type": "postBack",
"title": "Gracias"
},
{
"type": "postBack",
"title": "Adiós"
},
{
"type": "postBack",
"title": "Ayuda"
},
{
"type": "postBack",
"title": "Esto va a greetings",
"value": { "intent": "intent.common.greetings" }
},
{
"type": "postBack",
"title": "Connection issue"
}
]
}
}
],
"inputHint": "expectingInput"
}
}
Suggestion 04 JSON file
{
"button.suggestion.04": {
"type": "message",
"text": "This is button.suggestion.04.",
"attachmentLayout": "SUGGESTIONS",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
]
}
}
],
"inputHint": "expectingInput"
}
}
Suggestion 05 JSON file
{
"button.suggestion.05": {
"type": "message",
"text": "This is button.suggestion.05.",
"attachmentLayout": "SUGGESTIONS",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "postBack",
"title": ""
},
{
"type": "postBack",
"title": ""
},
{
"type": "postBack",
"title": ""
}
]
}
}
],
"inputHint": "expectingInput"
}
}
Actions
Actions 01 JSON file
{"text": "This should be the insight text.","attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "imBack",
"title": "Yes"
},
{
"type": "imBack",
"title": "No"
}
]
}
}
]
}
Actions 02 JSON file
{"text": "This should be the insight text.",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "imBack",
"title": "Yes"
},
{
"type": "imBack",
"title": "No"
},
{
"type": "imBack",
"title": "Cancel"
}
]
}
}
]
}
Actions 03 JSON file
{
"button.actions.03": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "imBack",
"title": "Yes, I agree with 30 characters"
},
{
"type": "imBack",
"title": "This action contains 50 characters, dont do it pls"
},
{
"type": "imBack",
"title": "This action button contains way more than 100 characters. Never do this please. User experience is horrible."
}
]
}
}
],
"inputHint": "expectingInput"
}
}
Actions 04 JSON file
{
"button.actions.04": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "imBack",
"title": "Yes"
},
{
"type": "imBack",
"title": "No"
},
{
"type": "imBack",
"title": "Maybe"
},
{
"type": "imBack",
"title": "Didn't understand"
},
{
"type": "imBack",
"title": "Don't know"
},
{
"type": "imBack",
"title": "Cancel"
}
]
}
}
],
"inputHint": "expectingInput"
}
}
Actions 05 JSON file
{
"button.actions.05": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": []
}
}
],
"inputHint": "expectingInput"
}
}
Actions 06 JSON file
{
"button.actions.06": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "imBack",
"title": ""
},
{
"type": "imBack",
"title": ""
},
{
"type": "imBack",
"title": ""
}
]
}
}
],
"inputHint": "expectingInput"
}}
External buttons
External button 01 JSON file
{
"button.external.01": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "openUrl",
"title": "**Google**",
"value": "https://www.google.com"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
External button 02 JSON file
{
"button.external.02": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "openUrl",
"title": "Url button with 30 characters",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "This url button contains 50 characters, dont do it",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "This url button contains way more than 100 characters. Never do this please. User experience is horrible",
"value": "https://www.google.com"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
External button 03 JSON file
{
"button.external.03": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "openUrl",
"title": "Google 1",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "Google 2",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "Google 3",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "Google 4",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "Google 5",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "Google 6",
"value": "https://www.google.com"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
External button 04 JSON file
{
"button.external.04": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": []
}
}
],
"inputHint": "acceptingInput"
}
}
External button 05 JSON file
{
"button.external.05": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "openUrl",
"title": "",
"value": "www.google.com"
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
External button 06 JSON file
{
"button.external.06": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "openUrl",
"title": "Google",
"value": ""
}
]
}
}
],
"inputHint": "acceptingInput"
}
}
External button 07 JSON file
{
"button.external.07": {
"type": "message",
"text": "This should be the insight text.",
"attachmentLayout": "list",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.hero",
"content": {
"buttons": [
{
"type": "openUrl",
"title": "**Url button with 30 characters.**",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "**This url button contains 50 characters, dont do it**",
"value": "https://www.google.com"
},
{
"type": "openUrl",
"title": "**This url button contains way more than 100 characters. Never do this please. User experience is horrible**",
"value": "https://www.google.com"
}
]
}
}
]
}
}
Mix messages
Mix message 01 JSON files
Message 1: Insight
{
"text": "Loremipsumdolorsitamet, consecteturadipiscingelit. Crasnuncelit, auctorutlectusvel, blanditeleifendturpis. Nammalesuadacursusarcu. Pellentesqueeu magnanonlectuseleifendmattisinneclibero. Quisquelaciniaeget ligulaaliquamaccumsan. "
}
Message 2: Herocards
Message 3: Suggestions with 1-3 options and less than 20 characters
Mix message 02 JSON files
Message 1: Insight
{
"text": "Loremipsumdolorsitamet, consecteturadipiscingelit. Crasnuncelit, auctorutlectusvel, blanditeleifendturpis. Nammalesuadacursusarcu. Pellentesqueeu magnanonlectuseleifendmattisinneclibero. Quisquelaciniaeget ligulaaliquamaccumsan. "
}
Message 2: Herocards
Message 3: suggestions with 4-10 options and less than 20 characters
Mix message 03 JSON files
Message 1: Insight
{
"text": "Loremipsumdolorsitamet, consecteturadipiscingelit. Crasnuncelit, auctorutlectusvel, blanditeleifendturpis. Nammalesuadacursusarcu. Pellentesqueeu magnanonlectuseleifendmattisinneclibero. Quisquelaciniaeget ligulaaliquamaccumsan. "
}
Message 2: Herocards
Message 3: suggestions with more than 10 options and/or more than 20 characters
Mix message 05 JSON files
Message 1: HeroCards
Message 2: Herocards
Message 3: Herocards
Message 4: suggestion
































































