0

I want to integrate the dialogflow bot I made to a website and change the logo and make it show up when a button is clicked and stay floating I tried looking the source code of the webdemo and copy pasted it to my website and edited the img src but didnt work any solutions?

bahaa
  • 67
  • 1
  • 11

2 Answers2

1

You can use kommunicate.io Web API for using your dialogflow app in your website.

You just need to add your kommunicate credentials(APP_ID) in the JavaScript code of your web page to display a widget as you want.

<script type="text/javascript">
(function(d, m){

/*---------------- Kommunicate settings start ----------------*/

 var kommunicateSettings = {
  "appId": "<APP_ID>",
  "conversationTitle":"<CONVERSATION_TITLE>",
  "automaticChatOpenOnNavigation": true,
  "popupWidget": true
  /*
  "onInit": function (){
    // paste your code here
  },
    "botIds":["<BOT_ID_1>","<BOT_ID_2>"]
  */
  };

/*----------------- Kommunicate settings end ------------------*/

 var s = document.createElement("script");
  s.type = "text/javascript";
  s.async = true;
  s.src = "https://widget.kommunicate.io/v2/kommunicate.app";
  var h = document.getElementsByTagName("head")[0];
  h.appendChild(s);
  window.kommunicate = m;
  m._globals = kommunicateSettings;
})(document, window.kommunicate || {});

Use this guide to integrate Dialogflow.

Hope this helps.

Sairaj Sawant
  • 1,842
  • 1
  • 12
  • 16
0

You can use https://board.support/. You just need to click the sync button into the admin area, generate the Refresh Token, and insert the Project ID, after that the Dialogflow bot will start answering the users' questions.

Check this page for more details: https://board.support/dialogflow. Docs at: https://board.support/docs#dialogflow

To display the chat you will need to insert a link to a js file:

<script src="supportboard/js/init.js"></script> 

Server requirements: PHP 7.2+ and MySQL

Disclaimer: I work for Support Board