# How to embed Sendbird AI Chatbot into a GoDaddy site

**URL:** <https://community.sendbird.com/t/how-to-embed-sendbird-ai-chatbot-into-a-godaddy-site/9508>\
**Category:** Sendbird AI Agent\
**Tags:** chatbot, ai-chatbot\
**Created:** [May 8, 2024, 4:04pm UTC](https://community.sendbird.com/t/how-to-embed-sendbird-ai-chatbot-into-a-godaddy-site/9508 "2024-05-08T16:04:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taha.saghir](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/taha.saghir/32/2094_2.png) [@taha.saghir](https://community.sendbird.com/u/taha.saghir)\
**Post date:** [May 8, 2024, 4:04pm UTC](https://community.sendbird.com/t/how-to-embed-sendbird-ai-chatbot-into-a-godaddy-site/9508/1 "2024-05-08T16:04:00Z")

</div>

Follow the below instructions to embed the Sendbird AI chatbot into a GoDaddy site OR if you have tried embedding it and facing issues like positioning of the Bot widget and delay in rendering the response from the bot.

---

<div class="post-metadata">

**Author:** ![taha.saghir](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/taha.saghir/32/2094_2.png) [@taha.saghir](https://community.sendbird.com/u/taha.saghir)\
**Post date:** [May 8, 2024, 4:22pm UTC](https://community.sendbird.com/t/how-to-embed-sendbird-ai-chatbot-into-a-godaddy-site/9508/2 "2024-05-08T16:22:18Z")

</div>

1. Copy the Bot script generated from the Sendbird dashboard.

 ![Screenshot 2024-05-08 at 11.13.16 AM](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/c/c1573e041eaf22a5cb8de96353949b39f600119e.png)

1. Edit the last line of the script as follows.

- Replace `window` with `parent`
- and replace `document` with `parent.document`

The final script will look like this.

```auto
<script>
!function(w, d, s, ...args){
  var div = d.createElement('div');
  div.id = 'aichatbot';
  d.body.appendChild(div);
  w.chatbotConfig = args;

  var f = d.getElementsByTagName(s)[0],
  j = d.createElement(s);
  j.defer = true;
  j.type = 'module';
  j.src = 'https://aichatbot.sendbird.com/index.js';
  f.parentNode.insertBefore(j, f);
}(parent, parent.document, 'script', '<app-id>', '<bot-name>');
</script>

```

1. Follow the instructions [here](https://uk.godaddy.com/help/add-html-or-custom-code-to-my-site-27252) to embed this script to your GoDaddy site.

2. Set the height of the HTML section you have added to “0 pixels”.
