{"id":271528,"date":"2025-07-21T05:51:27","date_gmt":"2025-07-21T05:51:27","guid":{"rendered":"https:\/\/www.revechat.com\/?post_type=help-center&#038;p=271528"},"modified":"2026-04-29T07:00:02","modified_gmt":"2026-04-29T07:00:02","slug":"api-connector","status":"publish","type":"help-center","link":"https:\/\/www.revechat.com\/help-center\/api-connector\/","title":{"rendered":"API Connector"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>API Connector action is used in the conversation flow for server-side integrations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#181d27\" class=\"has-inline-color\">Choose API<\/mark><\/h2>\n\n\n\n<p>Firstly, you have to choose API from the dropdown of API Connector. You will be shown those APIs which are in LIVE status.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-dominant-color=\"f5f5f5\" data-has-transparency=\"true\" style=\"--dominant-color: #f5f5f5;\" decoding=\"async\" width=\"423\" height=\"282\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot.png\" alt=\"\" class=\"has-transparency wp-image-271531\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot.png 423w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot-300x200.png 300w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/figure><\/div>\n\n\n<p>Basically, by selecting the API it will be called upon.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#181d27\" class=\"has-inline-color\">Condition<\/mark><\/h2>\n\n\n\n<p>It&#8217;s time to make conditions based on API calling. It might be over API status conditions or attribute-based conditions. By clicking the <strong><em>Add Condition button<\/em><\/strong> this section will appear. By clicking the added condition, a new window will appear where we have to set the rules.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-dominant-color=\"eef1f4\" data-has-transparency=\"true\" style=\"--dominant-color: #eef1f4;\" decoding=\"async\" width=\"432\" height=\"376\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot2.png\" alt=\"\" class=\"has-transparency wp-image-271533\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot2.png 432w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot2-300x261.png 300w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#181d27\" class=\"has-inline-color\">Condition by API Status<\/mark><\/h3>\n\n\n\n<p>You can make conditions based on API status (marked in green) like 200, 400, 500, etc., and then jump to a specific node. If the condition is successful meaning when the API is called and status is 200, the node connected to the if <strong><em>success connector point<\/em><\/strong> will be triggered (yellow arrow). Otherwise the node connected to the <strong><em>Else connector point.<\/em><\/strong> (purple arrow)<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-dominant-color=\"a4a6a6\" data-has-transparency=\"true\" style=\"--dominant-color: #a4a6a6;\" decoding=\"async\" width=\"1024\" height=\"481\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot3-1024x481.png\" alt=\"\" class=\"has-transparency wp-image-271534\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot3-1024x481.png 1024w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot3-300x141.png 300w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot3-768x360.png 768w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot3-1536x721.png 1536w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot3.png 1711w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#181d27\" class=\"has-inline-color\">Condition by Attribute<\/mark><\/h3>\n\n\n\n<p>We can also make conditions by using attributes. In the below example, if the API status is 200 &amp; visitor&#8217;s location is Chicago, the node connected with the <strong><em>success connector<\/em><\/strong> will be triggered.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-dominant-color=\"edf2ef\" data-has-transparency=\"true\" style=\"--dominant-color: #edf2ef;\" decoding=\"async\" width=\"486\" height=\"378\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot4.png\" alt=\"\" class=\"has-transparency wp-image-271535\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot4.png 486w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot4-300x233.png 300w\" sizes=\"(max-width: 486px) 100vw, 486px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#181d27\" class=\"has-inline-color\">Multi-layer Conditions<\/mark><\/h3>\n\n\n\n<p>Multi-layer condition can be added based on use case. In the below example, chatbot will first try to check the first condition (marked in yellow). If it fails, than system will check the 2nd condition and if the rules are matched, the node connected with the else <strong><em>if success connector point<\/em><\/strong> will be triggered. Otherwise the node connected with the <strong><em>Else connector<\/em><\/strong> will be triggered.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-dominant-color=\"eff1f2\" data-has-transparency=\"true\" style=\"--dominant-color: #eff1f2;\" decoding=\"async\" width=\"1024\" height=\"749\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot5-1024x749.png\" alt=\"\" class=\"has-transparency wp-image-271536\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot5-1024x749.png 1024w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot5-300x220.png 300w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot5-768x562.png 768w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/07\/API-Action_chatbot5.png 1167w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>API Connector action is used in the conversation flow for server-side integrations. Choose API Firstly, you have to choose API from the dropdown of API Connector. You will be shown those APIs which are in LIVE status. Basically, by selecting the API it will be called upon. Condition It&#8217;s time to make conditions based on [&hellip;]<\/p>\n","protected":false},"author":36,"featured_media":0,"menu_order":53,"template":"","meta":{"_acf_changed":false,"footnotes":""},"help_center_type":[1829],"class_list":["post-271528","help-center","type-help-center","status-publish","hentry","help_center_type-advanced-action"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help-center\/271528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help-center"}],"about":[{"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/types\/help-center"}],"author":[{"embeddable":true,"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/users\/36"}],"version-history":[{"count":3,"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help-center\/271528\/revisions"}],"predecessor-version":[{"id":302947,"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help-center\/271528\/revisions\/302947"}],"wp:attachment":[{"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/media?parent=271528"}],"wp:term":[{"taxonomy":"help_center_type","embeddable":true,"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help_center_type?post=271528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}