[{"data":1,"prerenderedAt":483},["ShallowReactive",2],{"doc-article-messaging-send-interactive":3,"doc-siblings-messaging":472},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"category":5,"order":10,"difficulty":11,"time_to_complete":12,"related":13,"code_curl":16,"code_node":17,"code_python":18,"code_go":19,"body":20,"_type":466,"_id":467,"_source":468,"_file":469,"_stem":470,"_extension":471},"\u002Fdeveloper\u002Fmessaging\u002Fsend-interactive","messaging",false,"","Send Interactive Messages","Send WhatsApp interactive list selection menus, quick-reply buttons, and business catalog cards.",4,"intermediate","5 minutes",[14,15],"\u002Fdocs\u002Fmessaging\u002Fsend-text","\u002Fdocs\u002Fmessaging\u002Fsend-media","# Send Interactive Quick-Reply Buttons\ncurl -X POST \"https:\u002F\u002Fapi.aisoule.com\u002Fv1\u002Fmessages\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"to\": \"918856879188\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n      \"type\": \"button\",\n      \"header\": {\n        \"type\": \"text\",\n        \"text\": \"Select your plan\"\n      },\n      \"body\": {\n        \"text\": \"Choose a subscription model to get started:\"\n      },\n      \"action\": {\n        \"buttons\": [\n          { \"type\": \"reply\", \"reply\": { \"id\": \"btn_growth\", \"title\": \"Growth Plan\" } },\n          { \"type\": \"reply\", \"reply\": { \"id\": \"btn_scale\", \"title\": \"Scale Plan\" } }\n        ]\n      }\n    }\n  }'\n","\u002F\u002F Dispatch quick-reply buttons via NodeJS\nconst axios = require('axios');\n\naxios.post('https:\u002F\u002Fapi.aisoule.com\u002Fv1\u002Fmessages', {\n  to: '918856879188',\n  type: 'interactive',\n  interactive: {\n    type: 'button',\n    header: { type: 'text', text: 'Select plan' },\n    body: { text: 'Choose a subscription model:' },\n    action: {\n      buttons: [\n        { type: 'reply', reply: { id: 'btn_growth', title: 'Growth Plan' } },\n        { type: 'reply', reply: { id: 'btn_scale', title: 'Scale Plan' } }\n      ]\n    }\n  }\n}, {\n  headers: { 'Authorization': 'Bearer YOUR_API_KEY' }\n})\n.then(res => console.log('Interactive sent:', res.data.message_id))\n.catch(err => console.error('Interactive Error:', err.message));\n","# Send interactive buttons in Python\nimport requests\n\npayload = {\n    \"to\": \"918856879188\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"button\",\n        \"body\": { \"text\": \"Choose a plan to get started:\" },\n        \"action\": {\n            \"buttons\": [\n                { \"type\": \"reply\", \"reply\": { \"id\": \"btn_growth\", \"title\": \"Growth Plan\" } },\n                { \"type\": \"reply\", \"reply\": { \"id\": \"btn_scale\", \"title\": \"Scale Plan\" } }\n            ]\n        }\n    }\n}\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_KEY\",\n    \"Content-Type\": \"application\u002Fjson\"\n}\nres = requests.post(\"https:\u002F\u002Fapi.aisoule.com\u002Fv1\u002Fmessages\", json=payload, headers=headers)\nprint(\"Response:\", res.json())\n","\u002F\u002F Send interactive buttons in Go\npackage main\n\nimport (\n    \"bytes\"\n    \"fmt\"\n    \"net\u002Fhttp\"\n    \"io\"\n)\n\nfunc main() {\n    jsonStr := []byte(`{\n        \"to\": \"918856879188\",\n        \"type\": \"interactive\",\n        \"interactive\": {\n            \"type\": \"button\",\n            \"body\": {\"text\": \"Choose a plan:\"},\n            \"action\": {\n                \"buttons\": [\n                    {\"type\": \"reply\", \"reply\": {\"id\": \"btn_growth\", \"title\": \"Growth\"}},\n                    {\"type\": \"reply\", \"reply\": {\"id\": \"btn_scale\", \"title\": \"Scale\"}}\n                ]\n            }\n        }\n    }`)\n    req, _ := http.NewRequest(\"POST\", \"https:\u002F\u002Fapi.aisoule.com\u002Fv1\u002Fmessages\", bytes.NewBuffer(jsonStr))\n    req.Header.Set(\"Authorization\", \"Bearer YOUR_API_KEY\")\n    req.Header.Set(\"Content-Type\", \"application\u002Fjson\")\n    \n    client := &http.Client{}\n    resp, _ := client.Do(req)\n    defer resp.Body.Close()\n    \n    body, _ := io.ReadAll(resp.Body)\n    fmt.Println(\"Sent:\", string(body))\n}\n",{"type":21,"children":22,"toc":460},"root",[23,31,45,52,65,71,427,431,437,449],{"type":24,"tag":25,"props":26,"children":28},"element","h1",{"id":27},"send-interactive-messages",[29],{"type":30,"value":8},"text",{"type":24,"tag":32,"props":33,"children":34},"p",{},[35,37,43],{"type":30,"value":36},"WhatsApp ",{"type":24,"tag":38,"props":39,"children":40},"strong",{},[41],{"type":30,"value":42},"Interactive Messages",{"type":30,"value":44}," offer users a much cleaner, structured way to interact with your automated systems than writing plain text. Interactive messages improve response conversion rates drastically.",{"type":24,"tag":46,"props":47,"children":49},"h2",{"id":48},"endpoint",[50],{"type":30,"value":51},"Endpoint",{"type":24,"tag":53,"props":54,"children":59},"pre",{"className":55,"code":57,"language":58,"meta":7},[56],"language-http","POST \u002Fv1\u002Fmessages\n","http",[60],{"type":24,"tag":61,"props":62,"children":63},"code",{"__ignoreMap":7},[64],{"type":30,"value":57},{"type":24,"tag":46,"props":66,"children":68},{"id":67},"payload-parameters",[69],{"type":30,"value":70},"Payload Parameters",{"type":24,"tag":72,"props":73,"children":74},"table",{},[75,105],{"type":24,"tag":76,"props":77,"children":78},"thead",{},[79],{"type":24,"tag":80,"props":81,"children":82},"tr",{},[83,90,95,100],{"type":24,"tag":84,"props":85,"children":87},"th",{"align":86},"left",[88],{"type":30,"value":89},"Parameter",{"type":24,"tag":84,"props":91,"children":92},{"align":86},[93],{"type":30,"value":94},"Type",{"type":24,"tag":84,"props":96,"children":97},{"align":86},[98],{"type":30,"value":99},"Required",{"type":24,"tag":84,"props":101,"children":102},{"align":86},[103],{"type":30,"value":104},"Description",{"type":24,"tag":106,"props":107,"children":108},"tbody",{},[109,144,184,216,264,296,328,360,394],{"type":24,"tag":80,"props":110,"children":111},{},[112,122,131,139],{"type":24,"tag":113,"props":114,"children":115},"td",{"align":86},[116],{"type":24,"tag":61,"props":117,"children":119},{"className":118},[],[120],{"type":30,"value":121},"to",{"type":24,"tag":113,"props":123,"children":124},{"align":86},[125],{"type":24,"tag":61,"props":126,"children":128},{"className":127},[],[129],{"type":30,"value":130},"string",{"type":24,"tag":113,"props":132,"children":133},{"align":86},[134],{"type":24,"tag":38,"props":135,"children":136},{},[137],{"type":30,"value":138},"Yes",{"type":24,"tag":113,"props":140,"children":141},{"align":86},[142],{"type":30,"value":143},"Destination mobile number (country code prefix).",{"type":24,"tag":80,"props":145,"children":146},{},[147,156,164,171],{"type":24,"tag":113,"props":148,"children":149},{"align":86},[150],{"type":24,"tag":61,"props":151,"children":153},{"className":152},[],[154],{"type":30,"value":155},"type",{"type":24,"tag":113,"props":157,"children":158},{"align":86},[159],{"type":24,"tag":61,"props":160,"children":162},{"className":161},[],[163],{"type":30,"value":130},{"type":24,"tag":113,"props":165,"children":166},{"align":86},[167],{"type":24,"tag":38,"props":168,"children":169},{},[170],{"type":30,"value":138},{"type":24,"tag":113,"props":172,"children":173},{"align":86},[174,176,182],{"type":30,"value":175},"Must be set to ",{"type":24,"tag":61,"props":177,"children":179},{"className":178},[],[180],{"type":30,"value":181},"interactive",{"type":30,"value":183},".",{"type":24,"tag":80,"props":185,"children":186},{},[187,195,204,211],{"type":24,"tag":113,"props":188,"children":189},{"align":86},[190],{"type":24,"tag":61,"props":191,"children":193},{"className":192},[],[194],{"type":30,"value":181},{"type":24,"tag":113,"props":196,"children":197},{"align":86},[198],{"type":24,"tag":61,"props":199,"children":201},{"className":200},[],[202],{"type":30,"value":203},"object",{"type":24,"tag":113,"props":205,"children":206},{"align":86},[207],{"type":24,"tag":38,"props":208,"children":209},{},[210],{"type":30,"value":138},{"type":24,"tag":113,"props":212,"children":213},{"align":86},[214],{"type":30,"value":215},"Interactive content configuration block.",{"type":24,"tag":80,"props":217,"children":218},{},[219,228,236,243],{"type":24,"tag":113,"props":220,"children":221},{"align":86},[222],{"type":24,"tag":61,"props":223,"children":225},{"className":224},[],[226],{"type":30,"value":227},"interactive.type",{"type":24,"tag":113,"props":229,"children":230},{"align":86},[231],{"type":24,"tag":61,"props":232,"children":234},{"className":233},[],[235],{"type":30,"value":130},{"type":24,"tag":113,"props":237,"children":238},{"align":86},[239],{"type":24,"tag":38,"props":240,"children":241},{},[242],{"type":30,"value":138},{"type":24,"tag":113,"props":244,"children":245},{"align":86},[246,248,254,256,262],{"type":30,"value":247},"Must be ",{"type":24,"tag":61,"props":249,"children":251},{"className":250},[],[252],{"type":30,"value":253},"button",{"type":30,"value":255}," (for 1-3 quick replies) or ",{"type":24,"tag":61,"props":257,"children":259},{"className":258},[],[260],{"type":30,"value":261},"list",{"type":30,"value":263}," (for up to 10 dropdown choices).",{"type":24,"tag":80,"props":265,"children":266},{},[267,276,284,291],{"type":24,"tag":113,"props":268,"children":269},{"align":86},[270],{"type":24,"tag":61,"props":271,"children":273},{"className":272},[],[274],{"type":30,"value":275},"interactive.body",{"type":24,"tag":113,"props":277,"children":278},{"align":86},[279],{"type":24,"tag":61,"props":280,"children":282},{"className":281},[],[283],{"type":30,"value":203},{"type":24,"tag":113,"props":285,"children":286},{"align":86},[287],{"type":24,"tag":38,"props":288,"children":289},{},[290],{"type":30,"value":138},{"type":24,"tag":113,"props":292,"children":293},{"align":86},[294],{"type":30,"value":295},"Main message text block.",{"type":24,"tag":80,"props":297,"children":298},{},[299,308,316,323],{"type":24,"tag":113,"props":300,"children":301},{"align":86},[302],{"type":24,"tag":61,"props":303,"children":305},{"className":304},[],[306],{"type":30,"value":307},"interactive.body.text",{"type":24,"tag":113,"props":309,"children":310},{"align":86},[311],{"type":24,"tag":61,"props":312,"children":314},{"className":313},[],[315],{"type":30,"value":130},{"type":24,"tag":113,"props":317,"children":318},{"align":86},[319],{"type":24,"tag":38,"props":320,"children":321},{},[322],{"type":30,"value":138},{"type":24,"tag":113,"props":324,"children":325},{"align":86},[326],{"type":30,"value":327},"Text displayed inside the main card body (supports formatting, max 1024 characters).",{"type":24,"tag":80,"props":329,"children":330},{},[331,340,348,355],{"type":24,"tag":113,"props":332,"children":333},{"align":86},[334],{"type":24,"tag":61,"props":335,"children":337},{"className":336},[],[338],{"type":30,"value":339},"interactive.action",{"type":24,"tag":113,"props":341,"children":342},{"align":86},[343],{"type":24,"tag":61,"props":344,"children":346},{"className":345},[],[347],{"type":30,"value":203},{"type":24,"tag":113,"props":349,"children":350},{"align":86},[351],{"type":24,"tag":38,"props":352,"children":353},{},[354],{"type":30,"value":138},{"type":24,"tag":113,"props":356,"children":357},{"align":86},[358],{"type":30,"value":359},"Click action handlers block.",{"type":24,"tag":80,"props":361,"children":362},{},[363,372,381,389],{"type":24,"tag":113,"props":364,"children":365},{"align":86},[366],{"type":24,"tag":61,"props":367,"children":369},{"className":368},[],[370],{"type":30,"value":371},"interactive.action.buttons",{"type":24,"tag":113,"props":373,"children":374},{"align":86},[375],{"type":24,"tag":61,"props":376,"children":378},{"className":377},[],[379],{"type":30,"value":380},"array",{"type":24,"tag":113,"props":382,"children":383},{"align":86},[384],{"type":24,"tag":38,"props":385,"children":386},{},[387],{"type":30,"value":388},"Yes (if button)",{"type":24,"tag":113,"props":390,"children":391},{"align":86},[392],{"type":30,"value":393},"Array of reply buttons (maximum 3 buttons).",{"type":24,"tag":80,"props":395,"children":396},{},[397,406,414,422],{"type":24,"tag":113,"props":398,"children":399},{"align":86},[400],{"type":24,"tag":61,"props":401,"children":403},{"className":402},[],[404],{"type":30,"value":405},"interactive.action.sections",{"type":24,"tag":113,"props":407,"children":408},{"align":86},[409],{"type":24,"tag":61,"props":410,"children":412},{"className":411},[],[413],{"type":30,"value":380},{"type":24,"tag":113,"props":415,"children":416},{"align":86},[417],{"type":24,"tag":38,"props":418,"children":419},{},[420],{"type":30,"value":421},"Yes (if list)",{"type":24,"tag":113,"props":423,"children":424},{"align":86},[425],{"type":30,"value":426},"Array of selection choices groups.",{"type":24,"tag":428,"props":429,"children":430},"hr",{},[],{"type":24,"tag":46,"props":432,"children":434},{"id":433},"example-interactive-list-menu-selection",[435],{"type":30,"value":436},"Example: Interactive List Menu Selection",{"type":24,"tag":32,"props":438,"children":439},{},[440,442,447],{"type":30,"value":441},"For menus requiring up to 10 choices, use the ",{"type":24,"tag":61,"props":443,"children":445},{"className":444},[],[446],{"type":30,"value":261},{"type":30,"value":448}," structure. Firing this displays a beautiful clean selection drawer inside the customer's WhatsApp application:",{"type":24,"tag":53,"props":450,"children":455},{"className":451,"code":453,"language":454,"meta":7},[452],"language-json","{\n  \"to\": \"918856879188\",\n  \"type\": \"interactive\",\n  \"interactive\": {\n    \"type\": \"list\",\n    \"header\": {\n      \"type\": \"text\",\n      \"text\": \"Support Hub\"\n    },\n    \"body\": {\n      \"text\": \"How can we assist you today? Please choose an option from the menu.\"\n    },\n    \"action\": {\n      \"button\": \"Select Topic\",\n      \"sections\": [\n        {\n          \"title\": \"Help Categories\",\n          \"rows\": [\n            { \"id\": \"row_billing\", \"title\": \"Billing & Invoices\", \"description\": \"Queries related to plans and payments\" },\n            { \"id\": \"row_tech\", \"title\": \"Technical Setup\", \"description\": \"Webhooks, API keys, and integrations support\" },\n            { \"id\": \"row_other\", \"title\": \"Speak to Agent\", \"description\": \"Transfer directly to a live agent\" }\n          ]\n        }\n      ]\n    }\n  }\n}\n","json",[456],{"type":24,"tag":61,"props":457,"children":458},{"__ignoreMap":7},[459],{"type":30,"value":453},{"title":7,"searchDepth":461,"depth":461,"links":462},2,[463,464,465],{"id":48,"depth":461,"text":51},{"id":67,"depth":461,"text":70},{"id":433,"depth":461,"text":436},"markdown","content:developer:messaging:send-interactive.md","content","developer\u002Fmessaging\u002Fsend-interactive.md","developer\u002Fmessaging\u002Fsend-interactive","md",[473,474,477,480],{"_path":4,"title":8},{"_path":475,"title":476},"\u002Fdeveloper\u002Fmessaging\u002Fsend-media","Send Media Messages",{"_path":478,"title":479},"\u002Fdeveloper\u002Fmessaging\u002Fsend-template","Send Template Messages",{"_path":481,"title":482},"\u002Fdeveloper\u002Fmessaging\u002Fsend-text","Send Text Messages",1780423178540]