{"id":347,"date":"2024-11-07T09:50:27","date_gmt":"2024-11-07T09:50:27","guid":{"rendered":"https:\/\/contentbot.ai\/documentation\/?post_type=docs&#038;p=347"},"modified":"2024-11-07T09:50:27","modified_gmt":"2024-11-07T09:50:27","password":"","slug":"random-item","status":"publish","type":"docs","link":"https:\/\/contentbot.ai\/documentation\/docs\/random-item\/","title":{"rendered":"Random Item"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"860\" height=\"347\" src=\"https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-1.png\" alt=\"\" class=\"wp-image-348\" srcset=\"https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-1.png 860w, https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-1-300x121.png 300w, https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-1-768x310.png 768w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h_e3438ddefc\">Description<\/h2>\n\n\n\n<p>The <strong>Random Item <\/strong>node will randomly select an item from a list of items. The item that is selected can then be used in a subsequent node<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h_e3661cb63a\">Type<\/h2>\n\n\n\n<p>&#8220;Filter&#8221; Node<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h_cafeaee307\">Fields<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>List: <\/strong>A list of items, each separated by a comma<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h_d1d9dc26b0\">Examples<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Example 1: <\/strong>This flow will use ChatGTP 3.5 to generate a comma separated list of 30 animals and then select one of the items at random to email as the &#8220;Animal of the day&#8221;.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"253\" src=\"https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-2-1024x253.png\" alt=\"\" class=\"wp-image-349\" srcset=\"https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-2-1024x253.png 1024w, https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-2-300x74.png 300w, https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-2-768x189.png 768w, https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-2.png 1285w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Example 2: <\/strong>In this example, a list of two items is entered into the list field, The <strong>Check field <\/strong>node compares the random selection to a pre-determined value, if they are the same, a new document is created.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"150\" src=\"https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-3-1024x150.png\" alt=\"\" class=\"wp-image-350\" srcset=\"https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-3-1024x150.png 1024w, https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-3-300x44.png 300w, https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-3-768x113.png 768w, https:\/\/contentbot.ai\/documentation\/wp-content\/uploads\/2024\/11\/RandomItem-3.png 1377w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Description The Random Item node will randomly select an item from a list of items. The item that is selected can then be used in a subsequent node Type &#8220;Filter&#8221; Node Fields Examples<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[11],"doc_tag":[],"class_list":["post-347","docs","type-docs","status-publish","hentry","doc_category-flows"],"aioseo_notices":[],"year_month":"2026-04","word_count":111,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"contentbot","author_nicename":"contentbot","author_url":"https:\/\/contentbot.ai\/documentation\/author\/contentbot\/"},"doc_category_info":[{"term_name":"Flows","term_url":"https:\/\/contentbot.ai\/documentation\/docs-category\/flows\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":1,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/347\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/347\/revisions\/351"}],"wp:attachment":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_category?post=347"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_tag?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}