# Display Chat Widget in iFrame

### User preference to trigger the bot in a different window:

It might be the scenario where in the web-pages are heavily loaded with the content and for the better visitor’s experience, the user may want to trigger the bot to open up in the new window .&#x20;

With ReplyCX, the users as per their preference can have the bot trigger in the new tab / window ensuring that current content on the web page is not hidden behind the chat screen.&#x20;

It is pretty simple and requires minor changes in the code that the user will need to make in-order to have the bot trigger in the different window.

### Steps to implement chatbots in different windows:

1. Enter the URL of your website in **“Website URL”** where you would like to deploy the bot.
2. Copy the code snippet.
3. Replace the script source with the source of your bot in the code snippet.\
   \
   This code renders the chat widget in a defined area on a specific page. Where you add this code on the webpage determines where the chat widget will be embedded.&#x20;
4. Copy and paste the code snippet post making changes in the code on those pages of your website where you would like to display the bot.

> *We recommend having the code copied before the \<Body> tag in-order to ensure that the bot triggers as soon as the web page loads.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.reply.cx/chat-widget-customization/display-chat-widget-in-iframe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
