1

I need to embed my own chatbot built using React in other React apps using <script>. Can anyone tell me where to start?

I need to do like this:

<script>
  window.chatbaseConfig = {
    chatbotId: "9hA3--GLvK_7q1DRscuH3",
  }
</script>
<script
  src="https://www.chatbase.co/embed.min.js"
  id="9hA3--GLvK_7q1DRscuH3"
  defer>
</script>
1
  • Your question isn't clear. Please see How to Ask and take the tour for tips. Commented Jul 10, 2023 at 14:41

1 Answer 1

-1

Have you tried using the <iframe> html tag? The iframe tag is used to embed another document within the current HTML document. Here is more information W3Schools iframe

Sign up to request clarification or add additional context in comments.

2 Comments

MDN is widely considered a more canonical and reliable reference.
iframe is okay but i need in script only

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.