<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Brett</title>
    <description>The latest articles on DEV Community by Brett (@bwestwood11).</description>
    <link>https://dev.to/bwestwood11</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1445940%2F5774909a-a6d7-4d10-aafb-71754384c939.png</url>
      <title>DEV Community: Brett</title>
      <link>https://dev.to/bwestwood11</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bwestwood11"/>
    <language>en</language>
    <item>
      <title>Add A Chatbot Widget To React App Using Chatbuild.io</title>
      <dc:creator>Brett</dc:creator>
      <pubDate>Wed, 24 Apr 2024 06:55:08 +0000</pubDate>
      <link>https://dev.to/bwestwood11/add-a-chatbot-widget-to-react-app-using-chatbuildio-4923</link>
      <guid>https://dev.to/bwestwood11/add-a-chatbot-widget-to-react-app-using-chatbuildio-4923</guid>
      <description>&lt;p&gt;Are you looking to boost user engagement in your React app? Adding a chatbot widget can be a game-changer, and with &lt;a href="https://www.chatbuild.io/"&gt;ChatBuild.io&lt;/a&gt;, the process is incredibly simple and affordable. In this guide, we’ll walk you through the steps to seamlessly integrate a chatbot widget into your React app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create Your Chatbot In Chatbuild.io
&lt;/h2&gt;

&lt;p&gt;Start by creating an account on &lt;a href="https://www.chatbuild.io/"&gt;ChatBuild.io&lt;/a&gt;. Once logged in, you can easily create a basic chatbot using ChatBuild’s intuitive interface. Define your chatbot’s responses, actions, and appearance to align with your app’s needs. you can also train your bot&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Customize Your Chatbot
&lt;/h2&gt;

&lt;p&gt;ChatBuild.io offers a range of customization options to ensure your chatbot fits seamlessly into your app’s design. Customize the chatbot’s color scheme, chat bubble style, and avatar to match your app’s branding. and don’t worry ChatBuild doesn't have any watermarks so your chatbot will perfectly match your UI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Copy the Script Tag
&lt;/h2&gt;

&lt;p&gt;After customizing your chatbot, &lt;a href="https://www.chatbuild.io/"&gt;ChatBuild.io&lt;/a&gt; will provide you with a script tag. This script tag is a snippet of code that you’ll need to include in your React app to integrate the chatbot. The Script Tag Will Look Something like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"chatbot"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://cdn.jsdelivr.net/gh/bwestwood11/chatbot-widget/bundle/index3.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
    &lt;span class="nx"&gt;Chatbot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;chatbot&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;your_api_key_will_be_here&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;theme_color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#2b9348&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="nx"&gt;Chatbot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loadCss&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://cdn.jsdelivr.net/gh/bwestwood11/chatbot-widget/bundle/index3.css&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 4: Integrate the Script Tag into Your React App
&lt;/h2&gt;

&lt;p&gt;To integrate the chatbot into your React app, open your index.html file and paste the script tag just before the closing &lt;/p&gt;

</description>
      <category>react</category>
      <category>typescript</category>
      <category>chatgpt</category>
      <category>chatbot</category>
    </item>
  </channel>
</rss>
