{"componentChunkName":"component---src-templates-docs-js","path":"/rcs/rcs_sending/examples","result":{"data":{"site":{"siteMetadata":{"title":"broadcaster","docsLocation":"https://github.com","docsLocationType":"github","editable":false}},"mdx":{"fields":{"id":"d8101f9e-15f2-5d53-a880-a6f744f1f56b","title":"Examples","slug":"/rcs/rcs_sending/examples"},"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Examples\",\n  \"order\": 3\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"Below are some examples of RCS messages you can send. These examples are only samples; many combinations are possible as long as they follow the indicated structure and rules.\"), mdx(\"section\", {\n    \"id\": \"textmessage\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Text message\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 176,\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"message\\\": {\\n        \\\"text\\\": \\\"RCS message\\\"\\n    },\\n    \\\"smsMessage\\\": \\\"SMS message\\\",\\n    \\\"smsDial\\\": \\\"36232\\\",\\n    \\\"country\\\": \\\"MX\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"image\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Image\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 321,\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"message\\\": {\\n        \\\"contentInfo\\\": {\\n            \\\"fileUrl\\\": \\\"https://domain.com/image.jpg\\\"\\n        }\\n    },\\n    \\\"smsMessage\\\": \\\"SMS message\\\",\\n    \\\"smsDial\\\": \\\"26262\\\",\\n    \\\"country\\\": \\\"MX\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"suggestedreply\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Suggested reply\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 321,\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"message\\\": {\\n        \\\"text\\\": \\\"How do you like your crepes?\\\",\\n        \\\"suggestions\\\": [\\n            {\\n                \\\"reply\\\": {\\n                    \\\"text\\\": \\\"Sweet\\\",\\n                    \\\"postbackData\\\": \\\"suggestion_1\\\"\\n                }\\n            },\\n            {\\n                \\\"reply\\\": {\\n                    \\\"text\\\": \\\"Savory\\\",\\n                    \\\"postbackData\\\": \\\"suggestion_2\\\"\\n                }\\n            }\\n        ]\\n    },\\n    \\\"smsDial\\\": \\\"26262\\\",\\n    \\\"smsMessage\\\": \\\"SMS message\\\",\\n    \\\"country\\\": \\\"MX\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"viewalocation\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"View a location\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 312,\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"message\\\": {\\n        \\\"text\\\": \\\"Sport Gym location\\\",\\n        \\\"suggestions\\\": [\\n            {\\n                \\\"action\\\": {\\n                    \\\"text\\\": \\\"View location\\\",\\n                    \\\"postbackData\\\": \\\"1234\\\",\\n                    \\\"viewLocationAction\\\": {\\n                        \\\"latLong\\\": {\\n                            \\\"latitude\\\": 19.4308357,\\n                            \\\"longitude\\\": -99.1774511\\n                        },\\n                        \\\"label\\\": \\\"Sport Gym\\\"\\n                    }\\n                }\\n            }\\n        ]\\n    },\\n    \\\"smsDial\\\": \\\"26262\\\",\\n    \\\"smsMessage\\\": \\\"SMS message\\\",\\n    \\\"country\\\": \\\"MX\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"sharelocation\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Share location\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 343,\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"message\\\": {\\n        \\\"suggestions\\\": [\\n            {\\n                \\\"action\\\": {\\n                    \\\"text\\\": \\\"Share your location\\\",\\n                    \\\"postbackData\\\": \\\"postback_data_12\\\",\\n                    \\\"shareLocationAction\\\": {}\\n                }\\n            }\\n        ]\\n    },\\n    \\\"smsDial\\\": \\\"26262\\\",\\n    \\\"smsMessage\\\": \\\"SMS message\\\",\\n    \\\"country\\\": \\\"MX\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"openurl\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Open URL\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 562,\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"message\\\": {\\n        \\\"text\\\": \\\"Do you need a custom app?\\\",\\n        \\\"suggestions\\\": [\\n            {\\n                \\\"action\\\": {\\n                    \\\"text\\\": \\\"Your answer is here\\\",\\n                    \\\"postbackData\\\": \\\"1\\\",\\n                    \\\"openUrlAction\\\": {\\n                        \\\"url\\\": \\\"https://www.conceptomovil.com/\\\"\\n                    }\\n                }\\n            }\\n        ]\\n    },\\n    \\\"smsDial\\\": \\\"26262\\\",\\n    \\\"smsMessage\\\": \\\"SMS message\\\",\\n    \\\"country\\\": \\\"MX\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"standalonerichcard\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Standalone Rich Card\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 456,\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"message\\\": {\\n        \\\"richCard\\\": {\\n            \\\"standaloneCard\\\": {\\n                \\\"thumbnailImageAlignment\\\": \\\"RIGHT\\\",\\n                \\\"cardOrientation\\\": \\\"VERTICAL\\\",\\n                \\\"cardContent\\\": {\\n                    \\\"title\\\": \\\"Title\\\",\\n                    \\\"description\\\": \\\"Card description\\\",\\n                    \\\"media\\\": {\\n                        \\\"height\\\": \\\"TALL\\\",\\n                        \\\"contentInfo\\\": {\\n                            \\\"fileUrl\\\": \\\"https://domain.com/image.jpg\\\"\\n                        }\\n                    },\\n                    \\\"suggestions\\\": [\\n                        {\\n                            \\\"reply\\\": {\\n                                \\\"text\\\": \\\"Option 1\\\",\\n                                \\\"postbackData\\\": \\\"suggestion_1\\\"\\n                            }\\n                        },\\n                        {\\n                            \\\"reply\\\": {\\n                                \\\"text\\\": \\\"Option 2\\\",\\n                                \\\"postbackData\\\": \\\"suggestion_2\\\"\\n                            }\\n                        }\\n                    ]\\n                }\\n            }\\n        }\\n    },\\n    \\\"smsDial\\\": \\\"26262\\\",\\n    \\\"smsMessage\\\": \\\"SMS message\\\",\\n    \\\"country\\\": \\\"MX\\\"\\n}\\n\"))), mdx(\"section\", {\n    \"id\": \"richcardcarousel\"\n  }, mdx(\"h3\", {\n    parentName: \"section\"\n  }, \"Rich Card carousel\"), mdx(\"pre\", {\n    parentName: \"section\"\n  }, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-json\"\n  }, \"{\\n    \\\"agentId\\\": 642,\\n    \\\"msisdn\\\": \\\"525500000000\\\",\\n    \\\"message\\\": {\\n        \\\"richCard\\\": {\\n            \\\"carouselCard\\\": {\\n                \\\"cardWidth\\\": \\\"MEDIUM\\\",\\n                \\\"cardContents\\\": [\\n                    {\\n                        \\\"title\\\": \\\"Card #1\\\",\\n                        \\\"description\\\": \\\"Card 1 description\\\",\\n                        \\\"suggestions\\\": [\\n                            {\\n                                \\\"reply\\\": {\\n                                    \\\"text\\\": \\\"Apple\\\",\\n                                    \\\"postbackData\\\": \\\"card_1\\\"\\n                                }\\n                            }\\n                        ],\\n                        \\\"media\\\": {\\n                            \\\"height\\\": \\\"MEDIUM\\\",\\n                            \\\"contentInfo\\\": {\\n                                \\\"fileUrl\\\": \\\"https://domain.com/image.jpg\\\"\\n                            }\\n                        }\\n                    },\\n                    {\\n                        \\\"title\\\": \\\"Card #2\\\",\\n                        \\\"description\\\": \\\"Card 2 description\\\",\\n                        \\\"suggestions\\\": [\\n                            {\\n                                \\\"reply\\\": {\\n                                    \\\"text\\\": \\\"Pear\\\",\\n                                    \\\"postbackData\\\": \\\"card_2\\\"\\n                                }\\n                            }\\n                        ],\\n                        \\\"media\\\": {\\n                            \\\"height\\\": \\\"MEDIUM\\\",\\n                            \\\"contentInfo\\\": {\\n                                \\\"fileUrl\\\": \\\"https://domain.com/image.jpg\\\"\\n                            }\\n                        }\\n                    }\\n                ]\\n            }\\n        }\\n    },\\n    \\\"smsDial\\\": \\\"26262\\\",\\n    \\\"smsMessage\\\": \\\"SMS test message\\\",\\n    \\\"country\\\": \\\"MX\\\"\\n}\\n\"))));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#text-message","title":"Text message"},{"url":"#image","title":"Image"},{"url":"#suggested-reply","title":"Suggested reply"},{"url":"#view-a-location","title":"View a location"},{"url":"#share-location","title":"Share location"},{"url":"#open-url","title":"Open URL"},{"url":"#standalone-rich-card","title":"Standalone Rich Card"},{"url":"#rich-card-carousel","title":"Rich Card carousel"}]},"timeToRead":1,"parent":{"__typename":"File","relativePath":"rcs/rcs_sending/examples.md","fields":{"gitLogLatestAuthorName":"Irais Aguirre","gitLogLatestAuthorEmail":"irais.aguirre@conceptomovil.com","gitLogLatestDate":"7 days ago"}},"frontmatter":{"metaTitle":null,"showMetadata":null,"editable":null,"showPreviousNext":null,"showToc":null}},"gitBranch":{"name":"20211019-2FACTOR_AUTH"},"gitCommit":{"hash":"9713e1925aeb8cad930f91b6bf05d0b5937b2bb5","date":"2026-11-13 06:39"}},"pageContext":{"id":"d8101f9e-15f2-5d53-a880-a6f744f1f56b"}},"staticQueryHashes":["12478684","12478684","2882937274","2882937274","353167761","353167761"]}