{"id":185,"date":"2024-11-06T12:41:59","date_gmt":"2024-11-06T12:41:59","guid":{"rendered":"https:\/\/contentbot.ai\/documentation\/?post_type=docs&#038;p=185"},"modified":"2024-11-06T12:45:16","modified_gmt":"2024-11-06T12:45:16","password":"","slug":"commands-shorten","status":"publish","type":"docs","link":"https:\/\/contentbot.ai\/documentation\/docs\/commands-shorten\/","title":{"rendered":"Commands: \/shorten"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h_02f3a1fe9a\">Overview<\/h2>\n\n\n\n<p>The \/shorten command can be used to shorten a phrase, which is useful for trimming a prompt before using it<\/p>\n\n\n\n<p>Input text can be inline text, or variables and the trimmed 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_3d47a2d971\">Examples<\/h2>\n\n\n\n<p>Example1: <em>Shorten a phrase to the length of 5 (Example: hello)<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/shorten 5 [hello world]<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/shorten x [Phrase]\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/yiaLGEjKRsQ?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>Shorten a phrase to the length of 5 characters and add &#8220;&#8230;&#8221; to the end (Example: hello&#8230;)<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/shorten 5 ... [hello world]<\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/shorten x ... [Phrase]\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/5HCAqJ2hL_4?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<h2 class=\"wp-block-heading\" id=\"h_ecf4606c25\">Arguments<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>characters (number)<\/li>\n\n\n\n<li>readmore (text to append)<\/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_9974f3c146\">Aliases<\/h2>\n\n\n\n<p>The following alias can also be used to shorten a phrase<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/trim<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Overview The \/shorten command can be used to shorten a phrase, which is useful for trimming a prompt before using it Input text can be inline text, or variables and the trimmed output will replace the command in the content window, or the output can be directed to a variable. Examples Example1: Shorten a phrase [&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-185","docs","type-docs","status-publish","hentry","doc_category-commands"],"aioseo_notices":[],"year_month":"2026-04","word_count":112,"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\/185","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=185"}],"version-history":[{"count":1,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/185\/revisions"}],"predecessor-version":[{"id":186,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/185\/revisions\/186"}],"wp:attachment":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_category?post=185"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_tag?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}