{"id":250,"date":"2024-11-07T03:53:37","date_gmt":"2024-11-07T03:53:37","guid":{"rendered":"https:\/\/contentbot.ai\/documentation\/?post_type=docs&#038;p=250"},"modified":"2024-11-07T03:53:38","modified_gmt":"2024-11-07T03:53:38","password":"","slug":"commands-expand","status":"publish","type":"docs","link":"https:\/\/contentbot.ai\/documentation\/docs\/commands-expand\/","title":{"rendered":"Commands: \/expand"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h_51e220c905\">Overview<\/h2>\n\n\n\n<p>The \/expand command can be used to expand or elaborate on an input phase.<\/p>\n\n\n\n<p>Input text can be inline text, or variables and the output will replace the command in the content window, or the output can be directed to a variable.<\/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_9b647db6ef\">Examples<\/h2>\n\n\n\n<p>Example1: <em>Write more about the input phrase, in this case a static phrase<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/expand [The joys of yodeling]<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/expand [#phrase]\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/aih4YpG431w?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Example 2: <em>Write more content based on the document topic<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/expand [#Topic]<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/expand [#variable]\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/i8yaZZCgkbA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Example 3: <em>Write contextual content based on the #topic and #content, then store it as a variable<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/expand [#topic #content] (as #relab)<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/expand [#variable1 #variable2] (as #newvariable)\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/-6EpOvHAJLA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>In the example above, the existing variables for the article #title and #content are used as the input to the \/expand command. The output is then directed to a new variable #elab. This new variable can then be used as an input in subsequent commands. In the example the \/log command was used to show the content of the #elab variable<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The \/expand command can be used to expand or elaborate on an input phase. Input text can be inline text, or variables and the output will replace the command in the content window, or the output can be directed to a variable. Examples Example1: Write more about the input phrase, in this case a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[9],"doc_tag":[],"class_list":["post-250","docs","type-docs","status-publish","hentry","doc_category-commands"],"aioseo_notices":[],"year_month":"2026-04","word_count":177,"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":"Commands","term_url":"https:\/\/contentbot.ai\/documentation\/docs-category\/commands\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/250","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=250"}],"version-history":[{"count":1,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/250\/revisions"}],"predecessor-version":[{"id":254,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/250\/revisions\/254"}],"wp:attachment":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_category?post=250"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_tag?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}