{"id":3704,"date":"2025-08-11T06:01:23","date_gmt":"2025-08-11T11:01:23","guid":{"rendered":"https:\/\/www.mysmartbots.com\/blog\/?p=3704"},"modified":"2025-08-11T06:01:23","modified_gmt":"2025-08-11T11:01:23","slug":"webhooks-available-at-bots-playground","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2025\/08\/webhooks-available-at-bots-playground\/","title":{"rendered":"Webhooks available at Bots Playground"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><img loading=\"lazy\" width=\"220\" height=\"155\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2024\/01\/20240117-playground-updates.jpg\" alt=\"\" class=\"wp-image-3399\"\/><\/figure><\/div>\n\n\n\n<p><strong>Incoming webhooks<\/strong> are now available at Bots Playground, giving your scripts an ability to receive data directly from your servers:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const webhook = await http.requestWebhook();\n\nBot.on(\"playground_webhook\", (event) =&gt; {\n  console.log(\"Data received:\", event);\n});<\/code><\/pre>\n\n\n\n<p>This addition opens up a wide range of possibilities: <\/p>\n\n\n\n<ul><li>receive remote commands, <\/li><li>integrate with third-party services (like Discord), <\/li><li>create two-way communication bridges between your servers and Second Life.<\/li><\/ul>\n\n\n\n<!--more-->\n\n\n\n<h2>How it works<\/h2>\n\n\n\n<p>Update introduces a new function <code>http.requestWebhook()<\/code> and new event: <code>playground_webhook<\/code>. (if you&#8217;re familiar with LSL: they work somewhat similar to <a rel=\"noreferrer noopener\" href=\"https:\/\/wiki.secondlife.com\/wiki\/LlRequestSecureURL\" data-type=\"URL\" data-id=\"https:\/\/wiki.secondlife.com\/wiki\/LlRequestSecureURL\" target=\"_blank\">LSL llRequestSecureURL <\/a>and <a rel=\"noreferrer noopener\" href=\"https:\/\/wiki.secondlife.com\/wiki\/Http_request\" data-type=\"URL\" data-id=\"https:\/\/wiki.secondlife.com\/wiki\/Http_request\" target=\"_blank\">LSL http_request<\/a> event).<\/p>\n\n\n\n<p>Check our Developer Documentation for more info:<\/p>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Built-in_Functions\/http.requestWebhookUrl\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Built-in_Functions\/http.requestWebhookUrl\" target=\"_blank\">http.requestWebhook()<\/a> function reference,<\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Events\/playground_webhook\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Events\/playground_webhook\" target=\"_blank\">playground_webhook<\/a> event reference,<\/li><li>a complete <a rel=\"noreferrer noopener\" href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Examples\/Webhooks\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Examples\/Webhooks\" target=\"_blank\">webhook example<\/a> showing both in action.<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Incoming webhooks are now available at Bots Playground, giving your scripts an ability to receive data directly from your servers: This addition opens up a wide range of possibilities: receive remote commands, integrate with third-party services (like Discord), create two-way communication bridges between your servers and Second Life.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[359,144],"tags":[586,366,587],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3704"}],"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=3704"}],"version-history":[{"count":1,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3704\/revisions"}],"predecessor-version":[{"id":3705,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3704\/revisions\/3705"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=3704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=3704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=3704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}