{"id":3739,"date":"2025-10-10T13:15:57","date_gmt":"2025-10-10T18:15:57","guid":{"rendered":"https:\/\/www.mysmartbots.com\/blog\/?p=3739"},"modified":"2025-10-10T13:15:57","modified_gmt":"2025-10-10T18:15:57","slug":"bots-playground-code-autocompletion","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2025\/10\/bots-playground-code-autocompletion\/","title":{"rendered":"Bots Playground code autocompletion"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><img loading=\"lazy\" width=\"250\" height=\"195\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2025\/10\/20251010-playground-autocompletion.jpg\" alt=\"\" class=\"wp-image-3742\"\/><\/figure><\/div>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\" target=\"_blank\">Bots Playground<\/a> is powered with a modern code editor (we use <a rel=\"noreferrer noopener\" href=\"https:\/\/codemirror.net\" data-type=\"URL\" data-id=\"https:\/\/codemirror.net\" target=\"_blank\">CodeMirror<\/a>).<\/p>\n\n\n\n<p>We added code completions like those in professional code editors. Playground editor now suggests SmartBots API function names and objects.<\/p>\n\n\n\n<p>It also suggests context-aware parameters for SmartBots API and embedded Playground functions.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-image clearboth\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2025\/10\/playground-autocompletion-example.jpg\" alt=\"\" class=\"wp-image-3740\" width=\"500\" height=\"NaN\"\/><\/figure><\/div>\n\n\n\n<h2>New script menu<\/h2>\n\n\n\n<p>Among the other updates and improvements, we added a script menu with a new auto-indent function:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2025\/10\/playground-script-menu.jpg\" alt=\"\" class=\"wp-image-3741\" width=\"500\"\/><\/figure><\/div>\n\n\n\n<p>Happy scripting!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bots Playground is powered with a modern code editor (we use CodeMirror). We added code completions like those in professional code editors. Playground editor now suggests SmartBots API function names and objects. It also suggests context-aware parameters for SmartBots API and embedded Playground functions.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[359,144,3,73],"tags":[590,156,366],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3739"}],"collection":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/comments?post=3739"}],"version-history":[{"count":5,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3739\/revisions"}],"predecessor-version":[{"id":3747,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3739\/revisions\/3747"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=3739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=3739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=3739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}