{"id":395,"date":"2024-09-21T17:57:50","date_gmt":"2024-09-21T14:57:50","guid":{"rendered":"https:\/\/help.testbh.ru\/?p=395"},"modified":"2025-09-24T13:27:40","modified_gmt":"2025-09-24T10:27:40","slug":"dejstvie-vneshnij-zapros","status":"publish","type":"post","link":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/","title":{"rendered":"External request"},"content":{"rendered":"<p>&#8220;External Request&#8221; can be found in the bot builder under the &#8220;Action&#8221; block in the dropdown list of actions.<\/p>\n<p><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669789146098-ixcqia12.png\" \/><\/p>\n<p data-start=\"110\" data-end=\"168\"><strong data-start=\"110\" data-end=\"168\">Examples of how to use the &#8220;External Request&#8221; in bots:<\/strong><\/p>\n<ol data-start=\"170\" data-end=\"237\">\n<li data-start=\"170\" data-end=\"237\">\n<p data-start=\"173\" data-end=\"237\"><em data-start=\"173\" data-end=\"230\">&#8220;Subscriber chooses which Star Wars character they are&#8221;<\/em>: <a href=\"\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/\">link<\/a>.<\/p>\n<\/li>\n<\/ol>\n<ul data-start=\"239\" data-end=\"414\">\n<li data-start=\"239\" data-end=\"263\">\n<p data-start=\"241\" data-end=\"263\">Sending the request.<\/p>\n<\/li>\n<li data-start=\"264\" data-end=\"288\">\n<p data-start=\"266\" data-end=\"288\">Testing the request.<\/p>\n<\/li>\n<li data-start=\"289\" data-end=\"375\">\n<p data-start=\"291\" data-end=\"375\">Description of simple JSON Path and saving data from the response to a user field.<\/p>\n<\/li>\n<li data-start=\"376\" data-end=\"414\">\n<p data-start=\"378\" data-end=\"414\">Using the retrieved data in the bot.<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\" data-start=\"416\" data-end=\"490\">\n<li data-start=\"416\" data-end=\"490\">\n<p data-start=\"419\" data-end=\"490\"><em data-start=\"419\" data-end=\"451\">Integration with Google Sheets<\/em> to read data from a spreadsheet: <a href=\"\/integracziya-s-gugl-tabliczami-cherez-vneshnij-zapros\/\">link<\/a>.<\/p>\n<\/li>\n<\/ol>\n<ul data-start=\"492\" data-end=\"725\">\n<li data-start=\"492\" data-end=\"556\">\n<p data-start=\"494\" data-end=\"556\">Setting up and preparing the Google account for integration.<\/p>\n<\/li>\n<li data-start=\"557\" data-end=\"593\">\n<p data-start=\"559\" data-end=\"593\">Sending and testing the request.<\/p>\n<\/li>\n<li data-start=\"594\" data-end=\"686\">\n<p data-start=\"596\" data-end=\"686\">Description of more complex JSON Path and saving data from the response to a user field.<\/p>\n<\/li>\n<li data-start=\"687\" data-end=\"725\">\n<p data-start=\"689\" data-end=\"725\">Using the retrieved data in the bot.<\/p>\n<\/li>\n<\/ul>\n<ol>\n<li data-start=\"727\" data-end=\"781\">\n<p data-start=\"730\" data-end=\"781\"><em data-start=\"730\" data-end=\"768\">Sending SMS via the SMS Aero service<\/em>: <a href=\"https:\/\/www.youtube.com\/watch?v=NC5iJ56HDXc\">video link<\/a>.<\/p>\n<\/li>\n<li data-start=\"783\" data-end=\"818\">\n<p data-start=\"786\" data-end=\"818\"><em data-start=\"786\" data-end=\"811\">Random number generator<\/em>: <a href=\"\/generator-sluchajnyh-chisel\/\">link<\/a>.<\/p>\n<\/li>\n<li data-start=\"823\" data-end=\"877\"><em data-start=\"823\" data-end=\"870\">Sending notifications to an agent in Telegram<\/em>: <a href=\"\/otpravka-uvedomlenij-agentu-v-telegram\/\">link<\/a>.<\/li>\n<li data-start=\"823\" data-end=\"877\"><em data-start=\"882\" data-end=\"931\">Issuing certificates via the GramotaDel service<\/em>: <a href=\"https:\/\/www.youtube.com\/watch?v=K3TG4gNR36E\">video link<\/a>.<\/li>\n<\/ol>\n<h3 data-start=\"951\" data-end=\"974\">General Description<\/h3>\n<p data-start=\"976\" data-end=\"1020\">The &#8220;External Request&#8221; action allows you to:<\/p>\n<ul data-start=\"1022\" data-end=\"1420\">\n<li data-start=\"1022\" data-end=\"1138\">\n<p data-start=\"1024\" data-end=\"1138\">Send requests to external services via their API. Available request types:<br data-start=\"1098\" data-end=\"1101\" \/><strong data-start=\"1103\" data-end=\"1136\">GET, POST, PUT, PATCH, DELETE<\/strong><\/p>\n<\/li>\n<li data-start=\"1139\" data-end=\"1238\">\n<p data-start=\"1141\" data-end=\"1238\">Save data received in the response from the external service into the subscriber\u2019s user fields.<\/p>\n<\/li>\n<li data-start=\"1239\" data-end=\"1300\">\n<p data-start=\"1241\" data-end=\"1300\">Test the request and view the response in a modal window.<\/p>\n<\/li>\n<li data-start=\"1301\" data-end=\"1420\">\n<p data-start=\"1303\" data-end=\"1420\">If macros are used in the request, test values will be substituted during testing and can be changed before the test.<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"1422\" data-end=\"1518\">All &#8220;External Request&#8221; settings are configured in a separate modal window opened via the editor.<\/p>\n<p><img decoding=\"async\" class=\"fr-fic fr-dii\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669790117759-rvt9n3ji.png\" \/><\/p>\n<h3 data-start=\"1525\" data-end=\"1549\">Request Type and URL<\/h3>\n<p data-start=\"1551\" data-end=\"1649\">In the dropdown &#8220;Request Type,&#8221; select the type of request (check the external API documentation).<\/p>\n<p data-start=\"1651\" data-end=\"1732\">In the &#8220;URL&#8221; field, enter the request endpoint (also from the API documentation).<\/p>\n<p data-start=\"1734\" data-end=\"1791\">Standard macros can be used in the URL. To insert macros:<\/p>\n<ul data-start=\"1793\" data-end=\"1859\">\n<li data-start=\"1793\" data-end=\"1827\">\n<p data-start=\"1795\" data-end=\"1827\">Place <code data-start=\"1801\" data-end=\"1804\">?<\/code> after the main link;<\/p>\n<\/li>\n<li data-start=\"1828\" data-end=\"1859\">\n<p data-start=\"1830\" data-end=\"1859\">Separate parameters with <code data-start=\"1855\" data-end=\"1858\">&amp;<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"1861\" data-end=\"1903\">Example: <code data-start=\"1870\" data-end=\"1903\">link.ru?utm_content=1&amp;{%field%}<\/code><\/p>\n<h3 data-start=\"1910\" data-end=\"1921\">Headers<\/h3>\n<p data-start=\"1923\" data-end=\"1971\">This section configures headers for the request.<\/p>\n<p data-start=\"1973\" data-end=\"1981\">You can:<\/p>\n<ul>\n<li data-start=\"1983\" data-end=\"2006\">\n<p data-start=\"1985\" data-end=\"2006\">Add\/remove headers;<\/p>\n<\/li>\n<li>Use macros in header values, so values will differ per subscriber.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669790964079-r9qkhohd.png\" \/><br \/>\n<strong data-start=\"2077\" data-end=\"2090\">Important<\/strong>: For correct data mapping, you must set the <code data-start=\"2135\" data-end=\"2149\">Content-Type<\/code> header in both the request and the service&#8217;s response.<br data-start=\"2204\" data-end=\"2207\" \/>Allowed values: <code data-start=\"2223\" data-end=\"2241\">application\/json<\/code> and <code data-start=\"2246\" data-end=\"2257\">text\/html<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3173\" src=\"https:\/\/help.bothelp.io\/wp-content\/uploads\/2024\/09\/screenshot-at-mar-21-11-23-20.png\" alt=\"\" width=\"747\" height=\"150\" srcset=\"https:\/\/help.bothelp.io\/wp-content\/uploads\/2024\/09\/screenshot-at-mar-21-11-23-20.png 1640w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2024\/09\/screenshot-at-mar-21-11-23-20-300x60.png 300w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2024\/09\/screenshot-at-mar-21-11-23-20-1024x206.png 1024w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2024\/09\/screenshot-at-mar-21-11-23-20-768x155.png 768w, https:\/\/help.bothelp.io\/wp-content\/uploads\/2024\/09\/screenshot-at-mar-21-11-23-20-1536x309.png 1536w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/p>\n<h3 data-start=\"2264\" data-end=\"2272\">Body<\/h3>\n<p data-start=\"2274\" data-end=\"2373\">This section describes the body of the request (usually JSON), as required by the external service.<\/p>\n<ul data-start=\"2375\" data-end=\"2535\">\n<li data-start=\"2375\" data-end=\"2430\">\n<p data-start=\"2377\" data-end=\"2430\">Only required for request types <strong data-start=\"2409\" data-end=\"2427\">other than GET<\/strong>.<\/p>\n<\/li>\n<li data-start=\"2431\" data-end=\"2463\">\n<p data-start=\"2433\" data-end=\"2463\">Standard macros can be used.<\/p>\n<\/li>\n<li data-start=\"2464\" data-end=\"2535\">\n<p data-start=\"2466\" data-end=\"2535\">On the right side, a preview with validation and formatting is shown.<\/p>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669791215601-4fvv1oli.png\" \/><\/p>\n<p data-start=\"0\" data-end=\"20\"><strong data-start=\"0\" data-end=\"20\">Response Section<\/strong><\/p>\n<p data-start=\"22\" data-end=\"126\" data-is-last-node=\"\" data-is-only-node=\"\">This section displays the response received from the external service when the request test is launched.<\/p>\n<p><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669801158875-b38bli9h.png\" \/><\/p>\n<ul>\n<li>Click <em data-start=\"2651\" data-end=\"2665\">Send Request<\/em> or <em data-start=\"2669\" data-end=\"2683\">Test Request<\/em> to start.<\/li>\n<li>If macros are used in headers, body, or URL, test values will be substituted.<\/li>\n<li>You can change test values using the dropdown \u201cTest Data\u201d.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669801340702-xr4j2zjz.png\" \/><br \/>\nThe response (status, headers, and body) will appear on the right side.<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669892829766-nw41o1lq.png\" \/><br \/>\nUse the &#8220;Response Mapping&#8221; tab to extract and save values from the response into user fields.<\/p>\n<p data-start=\"0\" data-end=\"28\"><strong data-start=\"0\" data-end=\"28\">Response Mapping Section<\/strong><\/p>\n<p data-start=\"30\" data-end=\"178\">In this section, you can configure response mapping so that data returned in the response to a request is saved to specified subscriber user fields.<\/p>\n<p data-start=\"180\" data-end=\"312\">You can view the data and its structure once you begin testing the request, under the &#8220;Response&#8221; tab in the &#8220;Response Body&#8221; section:<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669892944936-jrzbsee9.png\" \/><\/p>\n<p data-start=\"314\" data-end=\"431\">This <a href=\"https:\/\/help.testbh.ru\/prostoj-sczenarij-ispolzovaniya-dejstviya-vneshnij-zapros\/\">guide<\/a> describes a scenario that includes request testing, mapping setup, and further use of the data in the bot.<\/p>\n<p data-start=\"433\" data-end=\"454\">To configure mapping:<\/p>\n<ul>\n<li data-start=\"456\" data-end=\"516\">\n<p data-start=\"458\" data-end=\"516\">Add a mapping rule by clicking the + <strong>Add Mapping button<\/strong>;<\/p>\n<\/li>\n<li data-start=\"519\" data-end=\"678\">Specify the JSON Path \u2014 the path in the response body where the required value should be taken from. A detailed <a href=\"\/kak-napisat-json-path\/\">guide<\/a> on how to write JSON Path is available;<\/li>\n<li data-start=\"519\" data-end=\"678\">Specify the user field where the value from the response will be saved.<\/li>\n<\/ul>\n<p data-start=\"681\" data-end=\"752\">\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669802688955-apibb03s.png\" \/><\/p>\n<p data-start=\"754\" data-end=\"834\"><strong data-start=\"754\" data-end=\"768\">IMPORTANT!<\/strong> After configuring and testing the request, be sure to click Save.<\/p>\n<p data-start=\"836\" data-end=\"978\"><strong data-start=\"836\" data-end=\"850\">IMPORTANT!<\/strong> To ensure the external request settings are not lost, make sure to save the &#8220;Action&#8221; step where you added the external request.<\/p>\n<p data-start=\"985\" data-end=\"1015\"><strong data-start=\"985\" data-end=\"1015\">Frequently Asked Questions<\/strong><\/p>\n<p data-start=\"1017\" data-end=\"1057\"><strong data-start=\"1017\" data-end=\"1057\">Where can I get the Key for headers?<\/strong><\/p>\n<p data-start=\"1059\" data-end=\"1242\">This depends on the service and method you are integrating via the external request. The external service\u2019s setup documentation will specify what keys to use and where to insert them.<\/p>\n<p data-start=\"1249\" data-end=\"1287\"><strong data-start=\"1249\" data-end=\"1287\">Examples of using External Request<\/strong><\/p>\n<p data-start=\"1291\" data-end=\"1359\">Automated issuance of personalized certificates.<br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/vkvideo.ru\/video_ext.php?oid=-132741842&amp;id=456239987&amp;hd=2\" width=\"853\" height=\"480\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br data-start=\"1339\" data-end=\"1342\" \/><a href=\"https:\/\/youtu.be\/K3TG4gNR36E?si=RELGVPhDu865rc4E\"><em data-start=\"1344\" data-end=\"1359\">YouTube video<\/em><\/a><\/p>\n<p data-start=\"1363\" data-end=\"1419\">Sending SMS messages to subscribers.<br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/vkvideo.ru\/video_ext.php?oid=-132741842&amp;id=456239978&amp;hd=2\" width=\"853\" height=\"480\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br data-start=\"1399\" data-end=\"1402\" \/><em data-start=\"1404\" data-end=\"1419\"><a href=\"https:\/\/youtu.be\/NC5iJ56HDXc?si=iRqXxUXVbvSJhpAY\">YouTube video<\/a><\/p>\n<p><\/em>Notifications in a Telegram channel.<br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/vkvideo.ru\/video_ext.php?oid=-132741842&amp;id=456239989&amp;hd=2\" width=\"853\" height=\"480\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br data-start=\"1459\" data-end=\"1462\" \/><a href=\"https:\/\/youtu.be\/_RPabXEsWnY?si=t66--gyLijnbJgL2\"><em data-start=\"1464\" data-end=\"1479\">YouTube video<\/em><\/a><\/p>\n<p data-start=\"1481\" data-end=\"1644\">Using the &#8220;External Request&#8221; action, you can send or request information from external services, then receive a response and record it into subscriber user fields.<\/p>\n<p data-start=\"1651\" data-end=\"1712\"><strong data-start=\"1651\" data-end=\"1712\">A Simple Scenario for Using the &#8220;External Request&#8221; Action<\/strong><\/p>\n<p data-start=\"1714\" data-end=\"1878\">Using the &#8220;External Request&#8221; action, you can send or request information from external services, and then receive and save their response in subscriber user fields.<\/p>\n<p data-start=\"1880\" data-end=\"2070\">Below is the simplest scenario of how to use the &#8220;External Request&#8221; action. It\u2019s far from real-life use but demonstrates all the setup steps and the full functionality of &#8220;External Request&#8221;.<\/p>\n<p data-start=\"2077\" data-end=\"2111\"><strong data-start=\"2077\" data-end=\"2111\">Scenario Description and Setup<\/strong><\/p>\n<p data-start=\"2113\" data-end=\"2324\">In this example, we use the API from <a href=\"https:\/\/swapi.dev\/\">swapi.dev<\/a>. This service contains information about the Star Wars movie series: movie titles, character names and traits, descriptions of vehicles, planets, species, and more.<\/p>\n<p data-start=\"2326\" data-end=\"2386\">In other words, it\u2019s a Wikipedia for the Star Wars universe.<\/p>\n<p data-start=\"2393\" data-end=\"2418\"><strong data-start=\"2393\" data-end=\"2416\">Main Scenario Steps<\/strong><\/p>\n<ul data-start=\"2419\" data-end=\"2678\">\n<li data-start=\"2419\" data-end=\"2453\">\n<p data-start=\"2421\" data-end=\"2453\">The subscriber enters the bot.<\/p>\n<\/li>\n<li data-start=\"2454\" data-end=\"2521\">\n<p data-start=\"2456\" data-end=\"2521\">The bot sends a request to swapi.dev using the subscriber&#8217;s ID.<\/p>\n<\/li>\n<li data-start=\"2522\" data-end=\"2595\">\n<p data-start=\"2524\" data-end=\"2595\">The service returns a character whose ID matches the subscriber&#8217;s ID.<\/p>\n<\/li>\n<li data-start=\"2596\" data-end=\"2678\">\n<p data-start=\"2598\" data-end=\"2678\">The bot saves the character name to a user field and shows it to the subscriber.<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"2685\" data-end=\"2698\"><strong data-start=\"2685\" data-end=\"2698\">Bot Setup<\/strong><\/p>\n<p data-start=\"2700\" data-end=\"2725\">Create a simple bot flow:<\/p>\n<ul data-start=\"2727\" data-end=\"3215\">\n<li data-start=\"2727\" data-end=\"2827\">\n<p data-start=\"2729\" data-end=\"2827\">Add the \u201cMessage 1\u201d block.<br data-start=\"2755\" data-end=\"2758\" \/>Write a welcome message.<br data-start=\"2784\" data-end=\"2787\" \/>Add a button to move to the next step.<\/p>\n<\/li>\n<li data-start=\"2829\" data-end=\"2969\">\n<p data-start=\"2831\" data-end=\"2969\">Add the \u201cMessage 2\u201d block.<br data-start=\"2857\" data-end=\"2860\" \/>Display the subscriber\u2019s ID.<br data-start=\"2890\" data-end=\"2893\" \/>The external service will use this ID to find a character in its database.<\/p>\n<p><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=\"2971\" data-end=\"3082\">\n<p data-start=\"2973\" data-end=\"3082\">Add the \u201cAction 1\u201d block.<br data-start=\"2998\" data-end=\"3001\" \/>In this block, select the \u201cExternal Request\u201d action (we\u2019ll configure it 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=\"3084\" data-end=\"3215\">\n<p data-start=\"3086\" data-end=\"3215\">Add the \u201cMessage 3\u201d block.<br data-start=\"3112\" data-end=\"3115\" \/>Display the user field where you will save the character name retrieved from the external service.<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"3217\" data-end=\"3280\">Connect all the blocks, and you&#8217;ll have 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<p data-start=\"3287\" data-end=\"3325\"><strong data-start=\"3287\" data-end=\"3325\">Configuring the \u201cExternal Request\u201d<\/strong><\/p>\n<p data-start=\"3327\" data-end=\"3523\">Once you\u2019ve added the \u201cExternal Request\u201d action in the \u201cAction 1\u201d block, click the pencil icon to open the editing window for the External Request. Continue the configuration in the opened window.<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670216495694-yzhuotxq.png\" \/><\/p>\n<ul>\n<li data-start=\"3525\" data-end=\"3968\">Enter the request URL<\/li>\n<li data-start=\"3525\" data-end=\"3968\">From the swapi.dev documentation, choose the <a href=\"https:\/\/swapi.dev\/documentation#people\">method<\/a> that returns character info: <a class=\"\" href=\"https:\/\/swapi.dev\/api\/people\/1\/\" target=\"_new\" rel=\"noopener\" data-start=\"3631\" data-end=\"3662\">https:\/\/swapi.dev\/api\/people\/1\/<\/a><\/li>\n<li data-start=\"3525\" data-end=\"3968\">Copy and paste this into the \u201cURL\u201d field.<\/li>\n<li data-start=\"3525\" data-end=\"3968\">In this URL, \u201c1\u201d is the character ID. Replace this value with a macro that automatically inserts the internal subscriber ID. To do this, click the &lt;&gt; icon in the URL field and choose the required macro.<\/li>\n<li data-start=\"3525\" data-end=\"3968\">Final URL: <a class=\"cursor-pointer\" target=\"_new\" rel=\"noopener\" data-start=\"3925\" data-end=\"3968\">https:\/\/swapi.dev\/api\/people\/{%bh_user_id%}<\/a><\/li>\n<li data-start=\"3525\" data-end=\"3968\">Select the request type.<\/li>\n<\/ul>\n<p data-start=\"3970\" data-end=\"4145\">This request type is GET. You can find this information on the external service\u2019s API documentation site. Select GET in the \u201cRequest Type\u201d 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<p data-start=\"4147\" data-end=\"4232\">This method doesn\u2019t require headers or a request body, so proceed to request testing.<\/p>\n<ul>\n<li data-start=\"4234\" data-end=\"4818\">To start testing the request and ensure everything is working correctly and the service returns a valid response, go to the \u201cResponse\u201d tab or click the Test Request button.<\/li>\n<li data-start=\"4234\" data-end=\"4818\">In the opened tab, you\u2019ll see test data for the used macros. Default value: 10. You can change it if necessary.<\/li>\n<li data-start=\"4234\" data-end=\"4818\">To start testing, click the Send Request button.<br data-start=\"4571\" data-end=\"4574\" \/>The response will return a \u201c200 OK\u201d status, which means the external service successfully received your request and sent back a response.<\/li>\n<li data-start=\"4234\" data-end=\"4818\">On the right side of the window, in the \u201cResponse Body\u201d section, you\u2019ll see what you received in return.<\/li>\n<\/ul>\n<p data-start=\"4820\" data-end=\"4939\">You need the value of the &#8220;name&#8221; field. This is the value you will automatically save into the subscriber&#8217;s user field.<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670217186157-ldavaqdg.png\" \/><\/p>\n<p data-start=\"4946\" data-end=\"4973\"><strong data-start=\"4946\" data-end=\"4973\">Set up Response Mapping<\/strong><\/p>\n<p data-start=\"4975\" data-end=\"5127\">Response mapping lets you configure the logic that extracts a specific value from the response body and saves it into a specified subscriber user field.<\/p>\n<p data-start=\"5129\" data-end=\"5163\">To do this, you need to specify:<\/p>\n<ol data-start=\"5164\" data-end=\"5309\">\n<li data-start=\"5164\" data-end=\"5258\">\n<p data-start=\"5167\" data-end=\"5258\">the path in the response body where the desired field is located (<a href=\"\/kak-napisat-json-path\/\">more on that here<\/a>), and<\/p>\n<\/li>\n<li data-start=\"5259\" data-end=\"5309\">\n<p data-start=\"5262\" data-end=\"5309\">the user field where the value should be saved.<\/p>\n<\/li>\n<\/ol>\n<p data-start=\"5311\" data-end=\"5492\">Add a mapping and fill in the fields.<br data-start=\"5348\" data-end=\"5351\" \/>The JSON Path <code data-start=\"5365\" data-end=\"5373\">$.name<\/code> will return the value of the &#8220;name&#8221; field from the response body. In our test example, the value was &#8220;Obi-Wan Kenobi&#8221;.<\/p>\n<p data-start=\"5499\" data-end=\"5712\"><strong data-start=\"5499\" data-end=\"5568\"><img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670217420840-lllbwfc3.png\" \/><br \/>\nAt this point, you\u2019ve completed the setup for \u201cExternal Request\u201d.<\/strong><br data-start=\"5568\" data-end=\"5571\" \/>Be sure to save the settings by clicking Save.<br data-start=\"5617\" data-end=\"5620\" \/>Also, make sure to save the settings of the open \u201cAction 1\u201d step by clicking Save and Close.<\/p>\n<p data-start=\"5719\" data-end=\"5756\"><strong data-start=\"5719\" data-end=\"5756\">Bot Testing with External Request<\/strong><\/p>\n<p data-start=\"5758\" data-end=\"5833\">Run the bot test.<br data-start=\"5775\" data-end=\"5778\" \/>As a result, you will get a message sequence like this:<br \/>\n<img decoding=\"async\" class=\"fr-fic fr-dib\" src=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1670217698137-jbadvjlq.png\" \/><\/p>\n<p data-start=\"5835\" data-end=\"5871\"><strong data-start=\"5835\" data-end=\"5871\">I\u2019m Darth Vader, who are you? \ud83d\ude42<\/strong><\/p>\n<p data-start=\"5878\" data-end=\"5961\"><strong data-start=\"5878\" data-end=\"5954\">General documentation on the \u201cExternal Request\u201d action can be found here<\/strong>: <a href=\"\/dejstvie-vneshnij-zapros\/\">link<\/a>.<\/p>\n<article class=\"text-token-text-primary w-full focus:outline-none scroll-mt-[calc(var(--header-height)+min(200px,max(70px,20svh)))]\" dir=\"auto\" tabindex=\"-1\" data-testid=\"conversation-turn-14\" data-scroll-anchor=\"true\" data-turn=\"assistant\">\n<div class=\"text-base my-auto mx-auto pb-10 [--thread-content-margin:--spacing(4)] @[37rem]:[--thread-content-margin:--spacing(6)] @[72rem]:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)\">\n<div class=\"[--thread-content-max-width:32rem] @[34rem]:[--thread-content-max-width:40rem] @[64rem]:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group\/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col agent-turn\" tabindex=\"-1\">\n<div class=\"flex max-w-full flex-col grow\">\n<div class=\"min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;]:mt-5\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"b0f8a879-0249-4f38-9783-d0062dabd75e\" data-message-model-slug=\"gpt-4o\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[3px]\">\n<div class=\"markdown prose dark:prose-invert w-full break-words dark\">&nbsp;<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<div class=\"pointer-events-none h-px w-px\" aria-hidden=\"true\" data-edge=\"true\">\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<\/div>\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=\"395\">\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 send requests to external services via their API from the &#8220;Action&#8221; block<\/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-395","post","type-post","status-publish","format-standard","hentry","category-vneshnij-zapros"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>External request<\/title>\n<meta name=\"description\" content=\"How to send requests to external services via their API from the &quot;Action&quot; block\" \/>\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%20send%20requests%20to%20external%20services%20via%20their%20API%20from%20the%20Action%20block\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"External request\" \/>\n<meta property=\"og:description\" content=\"How to send requests to external services via their API from the &quot;Action&quot; block\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.bothelp.io\/en\/dejstvie-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:57:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-24T10:27:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669789146098-ixcqia12.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=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-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\":\"External request\",\"datePublished\":\"2024-09-21T14:57:50+00:00\",\"dateModified\":\"2025-09-24T10:27:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/\"},\"wordCount\":1313,\"image\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/files.carrotquest.io\\\/knowledge-bases-images\\\/articles\\\/49290\\\/49290-1669789146098-ixcqia12.png\",\"articleSection\":[\"External Request\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/\",\"url\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/\",\"name\":\"\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 BotHelp: \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 | \u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/files.carrotquest.io\\\/knowledge-bases-images\\\/articles\\\/49290\\\/49290-1669789146098-ixcqia12.png\",\"datePublished\":\"2024-09-21T14:57:50+00:00\",\"dateModified\":\"2025-09-24T10:27:40+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/#\\\/schema\\\/person\\\/3725f2e711da03f7380efe93da1a53ca\"},\"description\":\"\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 BotHelp. \u0423\u0437\u043d\u0430\u0439\u0442\u0435, \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-vneshnij-zapros\\\/#primaryimage\",\"url\":\"https:\\\/\\\/files.carrotquest.io\\\/knowledge-bases-images\\\/articles\\\/49290\\\/49290-1669789146098-ixcqia12.png\",\"contentUrl\":\"https:\\\/\\\/files.carrotquest.io\\\/knowledge-bases-images\\\/articles\\\/49290\\\/49290-1669789146098-ixcqia12.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.bothelp.io\\\/en\\\/dejstvie-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\":\"External request\"}]},{\"@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":"External request","description":"How to send requests to external services via their API from the \"Action\" block","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 send requests to external services via their API from the \"Action\" block","og_locale":"en_US","og_type":"article","og_title":"External request","og_description":"How to send requests to external services via their API from the \"Action\" block","og_url":"https:\/\/help.bothelp.io\/en\/dejstvie-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:57:50+00:00","article_modified_time":"2025-09-24T10:27:40+00:00","og_image":[{"url":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669789146098-ixcqia12.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":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/#article","isPartOf":{"@id":"https:\/\/help.bothelp.io\/en\/dejstvie-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":"External request","datePublished":"2024-09-21T14:57:50+00:00","dateModified":"2025-09-24T10:27:40+00:00","mainEntityOfPage":{"@id":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/"},"wordCount":1313,"image":{"@id":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/#primaryimage"},"thumbnailUrl":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669789146098-ixcqia12.png","articleSection":["External Request"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/","url":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/","name":"\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 BotHelp: \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 | \u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439","isPartOf":{"@id":"https:\/\/help.bothelp.io\/#website"},"primaryImageOfPage":{"@id":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/#primaryimage"},"image":{"@id":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/#primaryimage"},"thumbnailUrl":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669789146098-ixcqia12.png","datePublished":"2024-09-21T14:57:50+00:00","dateModified":"2025-09-24T10:27:40+00:00","author":{"@id":"https:\/\/help.bothelp.io\/#\/schema\/person\/3725f2e711da03f7380efe93da1a53ca"},"description":"\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 BotHelp. \u0423\u0437\u043d\u0430\u0439\u0442\u0435, \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b.","breadcrumb":{"@id":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/help.bothelp.io\/en\/dejstvie-vneshnij-zapros\/#primaryimage","url":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669789146098-ixcqia12.png","contentUrl":"https:\/\/files.carrotquest.io\/knowledge-bases-images\/articles\/49290\/49290-1669789146098-ixcqia12.png"},{"@type":"BreadcrumbList","@id":"https:\/\/help.bothelp.io\/en\/dejstvie-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":"External request"}]},{"@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\/395","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=395"}],"version-history":[{"count":28,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/395\/revisions"}],"predecessor-version":[{"id":5394,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/posts\/395\/revisions\/5394"}],"wp:attachment":[{"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/media?parent=395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/categories?post=395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.bothelp.io\/en\/wp-json\/wp\/v2\/tags?post=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}