{"id":1207,"date":"2022-12-02T11:38:39","date_gmt":"2022-12-02T11:38:39","guid":{"rendered":"https:\/\/woowbot.pro\/docs\/knowledgebase\/examples\/"},"modified":"2025-10-31T12:33:16","modified_gmt":"2025-10-31T12:33:16","slug":"examples","status":"publish","type":"kbx_knowledgebase","link":"https:\/\/woowbot.pro\/docs\/knowledgebase\/examples\/","title":{"rendered":"Examples"},"content":{"rendered":"<section class=\"js-section\">\n<h3 class=\"section__title\">Examples<\/h3>\n<p>Here you will find some examples that will help you to get started with creating different types of STR<\/p>\n<\/section>\n<hr \/>\n<section class=\"js-section\">\n<h3 class=\"section__title\">Basic STR<\/h3>\n<p>This is very basic setup of a STR. When user&#8217;s query is matched then chatbot will show the particular response for that query you have set. Also you can send a followup message to the chatbot user. See the screenshot below<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-large wp-image-2581\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/2-1024x1012.jpg\" alt=\"\" width=\"1024\" height=\"1012\" \/><\/p>\n<p>See how the chatbot response will look like on the frontend.<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/basic-str-front.png\" alt=\"\" width=\"1150\" height=\"1032\" \/><\/p>\n<h3 class=\"section__title\">STR Intent Chaining<\/h3>\n<p>In this example we will show how you can chain multiple STR intent to create like a conversation. Please see the screenshots below and create a STR this like.<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/chaining-example.png\" alt=\"\" width=\"2412\" height=\"5683\" \/><\/p>\n<p>Then you can link this STR with the previous STR that you created. See the screenshot below<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/chaining-example2.png\" alt=\"\" width=\"2430\" height=\"5671\" \/><\/p>\n<p>See how the chatbot response will look like on the frontend.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/chaining-example-front.png\" alt=\"\" width=\"972\" height=\"1066\" \/><\/p>\n<h3 class=\"section__title\">STR Intent Chaining Based on User Input<\/h3>\n<p>We will use the previous STR to chain intent based on user response. See the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/chaining-user-response.png\" alt=\"\" width=\"2402\" height=\"5679\" \/><\/p>\n<p>See how the chatbot response will look like on the frontend.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/chaining-user-response2.png\" alt=\"\" width=\"1042\" height=\"1102\" \/><\/p>\n<h3 class=\"section__title\">STR with an Entity<\/h3>\n<p>In this example, we will show you how you can use the entity feature with STR. Please see the screenshot of first STR. In this feedback intent, We are collecting the name of the user via entity @name and chain it with other STR when user&#8217;s answer is matched.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/entity.png\" alt=\"\" width=\"2410\" height=\"5681\" \/><\/p>\n<p>In second STR, you will see how we can use the previous STR entity value. You need to use a placeholder in response like @name{id-of-the-previous-str-where-the-@name-is-collected}<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/entity2.png\" alt=\"\" width=\"2410\" height=\"5679\" \/><\/p>\n<p>See how it works on the frontend.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2022\/12\/entity3.png\" alt=\"\" width=\"1040\" height=\"1092\" \/><\/p>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Examples Here you will find some examples that will help you to get started with creating different types of STR [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3238,"parent":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"kbx_category":[22,40],"kbx_tag":[],"class_list":["post-1207","kbx_knowledgebase","type-kbx_knowledgebase","status-publish","has-post-thumbnail","hentry","kbx_category-simple-text-response","kbx_category-chatbot-str-pro-module"],"_links":{"self":[{"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/kbx_knowledgebase\/1207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/kbx_knowledgebase"}],"about":[{"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/types\/kbx_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/comments?post=1207"}],"version-history":[{"count":1,"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/kbx_knowledgebase\/1207\/revisions"}],"predecessor-version":[{"id":3021,"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/kbx_knowledgebase\/1207\/revisions\/3021"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/media\/3238"}],"wp:attachment":[{"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/media?parent=1207"}],"wp:term":[{"taxonomy":"kbx_category","embeddable":true,"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/kbx_category?post=1207"},{"taxonomy":"kbx_tag","embeddable":true,"href":"https:\/\/woowbot.pro\/docs\/wp-json\/wp\/v2\/kbx_tag?post=1207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}