{"id":391,"date":"2024-09-21T17:56:45","date_gmt":"2024-09-21T14:56:45","guid":{"rendered":"https:\/\/help.testbh.ru\/?p=391"},"modified":"2025-03-28T13:03:50","modified_gmt":"2025-03-28T10:03:50","slug":"prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros","status":"publish","type":"post","link":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/","title":{"rendered":"Simple use case scenario for the \"External Request\" action"},"content":{"rendered":"<h3 data-start=\"105\" data-end=\"144\">Using the &#8220;External Request&#8221; Action<\/h3>\n<p data-start=\"146\" data-end=\"310\">With the <strong data-start=\"155\" data-end=\"175\">External Request<\/strong> action, you can send or request information from external services, then receive a response and save it into subscriber custom fields.<\/p>\n<p data-start=\"312\" data-end=\"513\">Below is the simplest scenario for using the <strong data-start=\"357\" data-end=\"377\">External Request<\/strong> action. This example is far from real-world complexity but demonstrates the setup steps and full functionality of the External Request.<\/p>\n<h3 data-start=\"520\" data-end=\"554\">Scenario Description and Setup<\/h3>\n<p data-start=\"556\" data-end=\"773\">In this example, we use the API from the service <a href=\"https:\/\/swapi.dev\/\"><strong data-start=\"605\" data-end=\"618\">swapi.dev<\/strong><\/a>. It stores information about the <em data-start=\"652\" data-end=\"663\">Star Wars<\/em> film series: movie titles, character names and traits, descriptions of vehicles, planets, species, and so on.<\/p>\n<p data-start=\"775\" data-end=\"848\">In other words, this service is a Wikipedia for the <em data-start=\"827\" data-end=\"838\">Star Wars<\/em> universe.<\/p>\n<h3 data-start=\"855\" data-end=\"873\">Scenario Steps<\/h3>\n<ol data-start=\"875\" data-end=\"1159\">\n<li data-start=\"875\" data-end=\"908\">\n<p data-start=\"878\" data-end=\"908\">The subscriber enters the bot.<\/p>\n<\/li>\n<li data-start=\"909\" data-end=\"974\">\n<p data-start=\"912\" data-end=\"974\">The bot sends a request to swapi.dev with the subscriber\u2019s ID.<\/p>\n<\/li>\n<li data-start=\"975\" data-end=\"1066\">\n<p data-start=\"978\" data-end=\"1066\">The service returns a description of the character whose ID matches the subscriber\u2019s ID.<\/p>\n<\/li>\n<li data-start=\"1067\" data-end=\"1159\">\n<p data-start=\"1070\" data-end=\"1159\">The bot saves the character\u2019s name into a custom field and displays it to the subscriber.<\/p>\n<\/li>\n<\/ol>\n<h3 data-start=\"1166\" data-end=\"1179\">Bot Setup<\/h3>\n<p data-start=\"1181\" data-end=\"1205\">Build a simple bot flow:<\/p>\n<ul data-start=\"1207\" data-end=\"1733\">\n<li data-start=\"1207\" data-end=\"1233\">\n<p data-start=\"1209\" data-end=\"1233\">Add block <strong data-start=\"1219\" data-end=\"1232\">Message 1<\/strong>.<\/p>\n<\/li>\n<li data-start=\"1234\" data-end=\"1258\">\n<p data-start=\"1236\" data-end=\"1258\">Write a greeting text.<\/p>\n<\/li>\n<li data-start=\"1259\" data-end=\"1297\">\n<p data-start=\"1261\" data-end=\"1297\">Add a button to go to the next step.<\/p>\n<\/li>\n<li data-start=\"1298\" data-end=\"1324\">\n<p data-start=\"1300\" data-end=\"1324\">Add block <strong data-start=\"1310\" data-end=\"1323\">Message 2<\/strong>.<\/p>\n<\/li>\n<li data-start=\"1325\" data-end=\"1355\">\n<p data-start=\"1327\" data-end=\"1355\">Display the subscriber\u2019s ID.<\/p>\n<\/li>\n<li data-start=\"1356\" data-end=\"1434\">\n<p data-start=\"1358\" data-end=\"1434\">The external service will use this ID to find the character in its database.<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216076077-sr0b843j.png\" \/><\/p>\n<\/li>\n<li data-start=\"1436\" data-end=\"1461\">\n<p data-start=\"1438\" data-end=\"1461\">Add block <strong data-start=\"1448\" data-end=\"1460\">Action 1<\/strong>.<\/p>\n<\/li>\n<li data-start=\"1462\" data-end=\"1554\">\n<p data-start=\"1464\" data-end=\"1554\">Select the <strong data-start=\"1475\" data-end=\"1495\">External Request<\/strong> action. The External Request settings are described below.<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216369132-cq1q6v5g.png\" \/><\/p>\n<\/li>\n<li data-start=\"1556\" data-end=\"1582\">\n<p data-start=\"1558\" data-end=\"1582\">Add block <strong data-start=\"1568\" data-end=\"1581\">Message 3<\/strong>.<\/p>\n<\/li>\n<li data-start=\"1583\" data-end=\"1674\">\n<p data-start=\"1585\" data-end=\"1674\">Display the custom field where you will save the name returned from the external service.<\/p>\n<\/li>\n<li data-start=\"1675\" data-end=\"1733\">\n<p data-start=\"1677\" data-end=\"1733\">Connect all blocks. You will get a simple bot like this.<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216216918-s31xzxkz.png\" \/><\/p>\n<\/li>\n<\/ul>\n<h3 data-start=\"1740\" data-end=\"1766\">External Request Setup<\/h3>\n<p data-start=\"1768\" data-end=\"1936\">After adding the <strong data-start=\"1785\" data-end=\"1805\">External Request<\/strong> action in <strong data-start=\"1816\" data-end=\"1828\">Action 1<\/strong> block, click the pencil icon to open the External Request editing window. All further settings happen here.<br \/>\n<code data-start=\"2037\" data-end=\"2070\"><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216495694-yzhuotxq.png\" \/><\/code><\/p>\n<ul data-start=\"1938\" data-end=\"3174\">\n<li data-start=\"1938\" data-end=\"2072\">\n<p data-start=\"1940\" data-end=\"2072\">Enter the request URL.<br data-start=\"1962\" data-end=\"1965\" \/>For swapi.dev, choose the API <a href=\"https:\/\/swapi.dev\/documentation#people\">method<\/a> returning character details:<br data-start=\"2032\" data-end=\"2035\" \/><code data-start=\"2037\" data-end=\"2070\">https:\/\/swapi.dev\/api\/people\/1\/<\/code><\/p>\n<\/li>\n<li data-start=\"2073\" data-end=\"2123\">\n<p data-start=\"2075\" data-end=\"2123\">Copy and paste the URL into the <strong data-start=\"2107\" data-end=\"2114\">URL<\/strong> field.<\/p>\n<\/li>\n<li data-start=\"2124\" data-end=\"2297\">\n<p data-start=\"2126\" data-end=\"2297\">Replace the fixed ID &#8220;1&#8221; with a macro that automatically inserts the subscriber\u2019s internal ID.<br data-start=\"2220\" data-end=\"2223\" \/>Click the <code data-start=\"2235\" data-end=\"2239\">&lt;&gt;<\/code> icon in the URL field and select the appropriate macro.<\/p>\n<\/li>\n<li data-start=\"2298\" data-end=\"2386\">\n<p data-start=\"2300\" data-end=\"2386\">The final URL should look like this:<br data-start=\"2336\" data-end=\"2339\" \/><code data-start=\"2341\" data-end=\"2386\">https:\/\/swapi.dev\/api\/people\/{%bh_user_id%}<\/code><\/p>\n<\/li>\n<li data-start=\"2388\" data-end=\"2487\">\n<p data-start=\"2390\" data-end=\"2487\">Choose the request type.<br data-start=\"2414\" data-end=\"2417\" \/>This request is a <strong data-start=\"2437\" data-end=\"2444\">GET<\/strong> request. Select <strong data-start=\"2461\" data-end=\"2468\">GET<\/strong> from the dropdown.<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216854302-jvmblkrz.png\" \/><\/p>\n<\/li>\n<li data-start=\"2489\" data-end=\"2568\">\n<p data-start=\"2491\" data-end=\"2568\">This method does not require headers or body, so proceed to test the request.<\/p>\n<\/li>\n<li data-start=\"2570\" data-end=\"2695\">\n<p data-start=\"2572\" data-end=\"2695\">To verify the request works and the service returns a valid response, go to the <strong data-start=\"2652\" data-end=\"2664\">Response<\/strong> tab or click <strong data-start=\"2678\" data-end=\"2694\">Test Request<\/strong>.<\/p>\n<\/li>\n<li data-start=\"2697\" data-end=\"2807\">\n<p data-start=\"2699\" data-end=\"2807\">In the opened tab, you see test data for the macros. The default value is &#8220;10&#8221;. You can change it if needed.<\/p>\n<\/li>\n<li data-start=\"2809\" data-end=\"2852\">\n<p data-start=\"2811\" data-end=\"2852\">Press <strong data-start=\"2817\" data-end=\"2833\">Send Request<\/strong> to start the test.<\/p>\n<\/li>\n<li data-start=\"2854\" data-end=\"2960\">\n<p data-start=\"2856\" data-end=\"2960\">A &#8220;200 OK&#8221; status means the external service received your request and returned a response successfully.<\/p>\n<\/li>\n<li data-start=\"2962\" data-end=\"3046\">\n<p data-start=\"2964\" data-end=\"3046\">On the right side in the <strong data-start=\"2989\" data-end=\"3006\">Response Body<\/strong> section, you can see the response data.<\/p>\n<\/li>\n<li data-start=\"3048\" data-end=\"3174\">\n<p data-start=\"3050\" data-end=\"3174\">You are interested in the <code data-start=\"3076\" data-end=\"3084\">\"name\"<\/code> field value. This is what you will save automatically into the subscriber\u2019s custom field.<\/p>\n<\/li>\n<\/ul>\n<h3 data-start=\"3181\" data-end=\"3205\"><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670217186157-ldavaqdg.png\" \/><br \/>\nMapping the Response<\/h3>\n<p data-start=\"3207\" data-end=\"3345\">Mapping allows you to set logic to extract the required field from the response body and save it into a specified subscriber custom field.<\/p>\n<ul data-start=\"3347\" data-end=\"3837\">\n<li data-start=\"3347\" data-end=\"3469\">\n<p data-start=\"3349\" data-end=\"3469\">Specify 1) the path to the field in the response body (<a href=\"https:\/\/help.bothelp.io\/article\/11278\">JSON Path<\/a>) and 2) the subscriber\u2019s custom field where to save it.<\/p>\n<\/li>\n<li data-start=\"3471\" data-end=\"3510\">\n<p data-start=\"3473\" data-end=\"3510\">Add a mapping and fill in the fields.<\/p>\n<\/li>\n<li data-start=\"3512\" data-end=\"3668\">\n<p data-start=\"3514\" data-end=\"3668\">The JSON Path value <code data-start=\"3534\" data-end=\"3542\">$.name<\/code> returns the <code data-start=\"3555\" data-end=\"3563\">\"name\"<\/code> field from the response body.<br data-start=\"3593\" data-end=\"3596\" \/>For example, the test response contained the value <code data-start=\"3649\" data-end=\"3667\">\"Obi-Wan Kenobi\"<\/code>.<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670217420840-lllbwfc3.png\" \/><\/p>\n<\/li>\n<li data-start=\"3670\" data-end=\"3706\">\n<p data-start=\"3672\" data-end=\"3706\">Finish the External Request setup.<\/p>\n<\/li>\n<li data-start=\"3708\" data-end=\"3760\">\n<p data-start=\"3710\" data-end=\"3760\">Be sure to save the settings by clicking <strong data-start=\"3751\" data-end=\"3759\">Save<\/strong>.<\/p>\n<\/li>\n<li data-start=\"3762\" data-end=\"3837\">\n<p data-start=\"3764\" data-end=\"3837\">Also, save the <strong data-start=\"3779\" data-end=\"3791\">Action 1<\/strong> step settings by clicking <strong data-start=\"3818\" data-end=\"3836\">Save and Close<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<h3 data-start=\"3844\" data-end=\"3885\">Testing the Bot with External Request<\/h3>\n<ul data-start=\"3887\" data-end=\"3948\">\n<li data-start=\"3887\" data-end=\"3906\">\n<p data-start=\"3889\" data-end=\"3906\">Run the bot test.<\/p>\n<\/li>\n<li data-start=\"3908\" data-end=\"3948\">\n<p data-start=\"3910\" data-end=\"3948\">You will get a message flow like this:<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"3950\" data-end=\"3989\"><strong data-start=\"3950\" data-end=\"3989\"><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670217698137-jbadvjlq.png\" \/><br \/>\n&#8220;I am Darth Vader, who are you? \ud83d\ude42&#8221;<\/p>\n<p><\/strong><\/p>\n<hr data-start=\"1913\" data-end=\"1916\" \/>\n<p data-start=\"1918\" data-end=\"1964\">If you did not find the answer to your question, feel free to contact us in the chat inside your dashboard, message us on Telegram at <strong data-start=\"1851\" data-end=\"1873\">@BotHelpSupportBot<\/strong>, or email us at <strong data-start=\"1890\" data-end=\"1910\"><a class=\"cursor-pointer\" rel=\"noopener\" data-start=\"1892\" data-end=\"1908\">hello@bothelp.io<\/a><\/strong>.<\/p>\n<p>Get 14 Days of Full Access to the Platform<\/p>\n<p data-start=\"1966\" data-end=\"2095\">Enjoy the full functionality of the BotHelp platform for creating broadcasts, automated funnels, and chatbots \u2014 free for 14 days.<\/p>\n<p data-start=\"2097\" data-end=\"2117\"><a href=\"https:\/\/bothelp.io\/ru\"><strong data-start=\"2097\" data-end=\"2117\">Get 14 Days Free<\/strong><\/a><\/p>\n<p data-start=\"3950\" data-end=\"3989\"><strong data-start=\"3950\" data-end=\"3989\">&nbsp;<\/strong><\/p>\n\r\n\t\t\t<div id=\"daexthefu-container\"\r\n\t\t\t\tclass=\"daexthefu-container daexthefu-layout-side-by-side daexthefu-alignment-left\"\r\n\t\t\t\tdata-post-id=\"391\">\r\n\r\n\t\t\t\t<div class=\"daexthefu-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefu-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefu-title\">\u0411\u044b\u043b\u0430 \u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u0430?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefu-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefu-buttons\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefu-yes daexthefu-button daexthefu-button-type-icon\" data-value=\"1\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-up-cls-1{fill:#c9c9c9;}.thumb-up-cls-2{fill:#e1e1e1;}.thumb-up-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_up\">\r\n                        <path class=\"thumb-up-cls-2 daexthefu-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-up-cls-3 daexthefu-icon-secondary-color\" x=\"10\" y=\"20\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefu-icon-primary-color\" d=\"m30.57,9.06l-.49-.1c-.81-.17-1.61.35-1.78,1.16l-5.3,11.74c-.17.81,3.16,1.61,3.97,1.78l1.96.41c.81.17,1.61-.35,1.78-1.16l2.18-10.27c.34-1.61-.7-3.21-2.31-3.56Z\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefu-icon-primary-color\" d=\"m38.17,20h-18.67c-.83,0-1.5.67-1.5,1.5v12c0,.83.67,1.5,1.5,1.5h16.27c.71,0,1.33-.5,1.47-1.21l2.4-12c.19-.93-.53-1.8-1.47-1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefu-no daexthefu-button daexthefu-button-type-icon\" data-value=\"0\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-down-cls-1{fill:#c9c9c9;}.thumb-down-cls-2{fill:#e1e1e1;}.thumb-down-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_down\">\r\n                        <path class=\"thumb-down-cls-2 daexthefu-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-down-cls-3 daexthefu-icon-secondary-color\" x=\"10\" y=\"13\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefu-icon-primary-color\" d=\"m30.57,38.94l-.49.1c-.81.17-1.61-.35-1.78-1.16l-5.3-11.74c-.17-.81,3.16-1.61,3.97-1.78l1.96-.41c.81-.17,1.61.35,1.78,1.16l2.18,10.27c.34,1.61-.7,3.21-2.31,3.56Z\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefu-icon-primary-color\" d=\"m38.17,28h-18.67c-.83,0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5,1.5-1.5h16.27c.71,0,1.33.5,1.47,1.21l2.4,12c.19.93-.53,1.8-1.47,1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefu-comment\">\r\n\t\t\t\t\t<div class=\"daexthefu-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefu-comment-label\" class=\"daexthefu-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefu-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefu-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefu-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefu-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefu-comment-textarea\" class=\"daexthefu-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefu-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefu-comment-submit daexthefu-button\">\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefu-comment-cancel daexthefu-button\">\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefu-successful-submission-text\">\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>How to set up the &#8220;External Request&#8221; action to send a request, receive a response, and use the received data further in the bot<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_helpful_status":1,"footnotes":""},"categories":[63],"tags":[],"class_list":["post-391","post","type-post","status-publish","format-standard","hentry","category-vneshnij-zapros"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Simple use case scenario for the &quot;External Request&quot; action<\/title>\n<meta name=\"description\" content=\"How to set up the &quot;External Request&quot; action to send a request, receive a response, and use the received data further in the bot\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/How%20to%20set%20up%20the%20External%20Request%20action%20to%20send%20a%20request,%20receive%20a%20response,%20and%20use%20the%20received%20data%20further%20in%20the%20bot\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple use case scenario for the &quot;External Request&quot; action\" \/>\n<meta property=\"og:description\" content=\"How to set up the &quot;External Request&quot; action to send a request, receive a response, and use the received data further in the bot\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bothelpru\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-21T14:56:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-28T10:03:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216076077-sr0b843j.png\" \/>\n<meta name=\"author\" content=\"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/\"},\"author\":{\"name\":\"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3725f2e711da03f7380efe93da1a53ca\"},\"headline\":\"Simple use case scenario for the \\\"External Request\\\" action\",\"datePublished\":\"2024-09-21T14:56:45+00:00\",\"dateModified\":\"2025-03-28T10:03:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/\"},\"wordCount\":618,\"image\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/files.carrotquest.io\\\/knowledge-bases-images\\\/articles\\\/49290\\\/49290-1670216076077-sr0b843j.png\",\"articleSection\":[\"External Request\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/\",\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/\",\"name\":\"\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u00ab\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u00bb \u0432 BotHelp | \u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/files.carrotquest.io\\\/knowledge-bases-images\\\/articles\\\/49290\\\/49290-1670216076077-sr0b843j.png\",\"datePublished\":\"2024-09-21T14:56:45+00:00\",\"dateModified\":\"2025-03-28T10:03:50+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3725f2e711da03f7380efe93da1a53ca\"},\"description\":\"\u0423\u0437\u043d\u0430\u0439\u0442\u0435, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u00ab\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u00bb \u0432 BotHelp. \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/#primaryimage\",\"url\":\"https:\\\/\\\/files.carrotquest.io\\\/knowledge-bases-images\\\/articles\\\/49290\\\/49290-1670216076077-sr0b843j.png\",\"contentUrl\":\"https:\\\/\\\/files.carrotquest.io\\\/knowledge-bases-images\\\/articles\\\/49290\\\/49290-1670216076077-sr0b843j.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"How to Work with BotHelp Service: Setting Up Your Account for Your Business Goals\",\"item\":\"https:\\\/\\\/help.bothelp.io\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simple use case scenario for the \\\"External Request\\\" action\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/\",\"name\":\"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp\",\"description\":\"\u0417\u0434\u0435\u0441\u044c \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3725f2e711da03f7380efe93da1a53ca\",\"name\":\"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc2c651ad25d8a5ed31aeb69271b32a21caab387207adf0043a317f97bedafbd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc2c651ad25d8a5ed31aeb69271b32a21caab387207adf0043a317f97bedafbd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc2c651ad25d8a5ed31aeb69271b32a21caab387207adf0043a317f97bedafbd?s=96&d=mm&r=g\",\"caption\":\"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430\"},\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/author\\\/t-karpikova\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Simple use case scenario for the \"External Request\" action","description":"How to set up the \"External Request\" action to send a request, receive a response, and use the received data further in the bot","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"How to set up the \"External Request\" action to send a request, receive a response, and use the received data further in the bot","og_locale":"en_US","og_type":"article","og_title":"Simple use case scenario for the \"External Request\" action","og_description":"How to set up the \"External Request\" action to send a request, receive a response, and use the received data further in the bot","og_url":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/","og_site_name":"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp","article_publisher":"https:\/\/www.facebook.com\/bothelpru","article_published_time":"2024-09-21T14:56:45+00:00","article_modified_time":"2025-03-28T10:03:50+00:00","og_image":[{"url":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216076077-sr0b843j.png","type":"","width":"","height":""}],"author":"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/#article","isPartOf":{"@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/"},"author":{"name":"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430","@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3725f2e711da03f7380efe93da1a53ca"},"headline":"Simple use case scenario for the \"External Request\" action","datePublished":"2024-09-21T14:56:45+00:00","dateModified":"2025-03-28T10:03:50+00:00","mainEntityOfPage":{"@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/"},"wordCount":618,"image":{"@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/#primaryimage"},"thumbnailUrl":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216076077-sr0b843j.png","articleSection":["External Request"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/","url":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/","name":"\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u00ab\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u00bb \u0432 BotHelp | \u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439","isPartOf":{"@id":"https:\/\/help.bothelp.io\/#website"},"primaryImageOfPage":{"@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/#primaryimage"},"image":{"@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/#primaryimage"},"thumbnailUrl":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216076077-sr0b843j.png","datePublished":"2024-09-21T14:56:45+00:00","dateModified":"2025-03-28T10:03:50+00:00","author":{"@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3725f2e711da03f7380efe93da1a53ca"},"description":"\u0423\u0437\u043d\u0430\u0439\u0442\u0435, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u00ab\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u00bb \u0432 BotHelp. \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.","breadcrumb":{"@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/#primaryimage","url":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216076077-sr0b843j.png","contentUrl":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216076077-sr0b843j.png"},{"@type":"BreadcrumbList","@id":"https:\/\/help.bothelp.io\/en\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"How to Work with BotHelp Service: Setting Up Your Account for Your Business Goals","item":"https:\/\/help.bothelp.io\/"},{"@type":"ListItem","position":2,"name":"Simple use case scenario for the \"External Request\" action"}]},{"@type":"WebSite","@id":"https:\/\/help.bothelp.io\/en\/#website","url":"https:\/\/help.bothelp.io\/en\/","name":"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 BotHelp","description":"\u0417\u0434\u0435\u0441\u044c \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.bothelp.io\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3725f2e711da03f7380efe93da1a53ca","name":"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fc2c651ad25d8a5ed31aeb69271b32a21caab387207adf0043a317f97bedafbd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fc2c651ad25d8a5ed31aeb69271b32a21caab387207adf0043a317f97bedafbd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fc2c651ad25d8a5ed31aeb69271b32a21caab387207adf0043a317f97bedafbd?s=96&d=mm&r=g","caption":"\u0422\u0430\u0442\u044c\u044f\u043d\u0430 \u041a\u0430\u0440\u043f\u0438\u043a\u043e\u0432\u0430"},"url":"https:\/\/help.bothelp.io\/en\/author\/t-karpikova\/"}]}},"_links":{"self":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/comments?post=391"}],"version-history":[{"count":7,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/391\/revisions"}],"predecessor-version":[{"id":3363,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/391\/revisions\/3363"}],"wp:attachment":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/media?parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/categories?post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/tags?post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}