Integration via your website

aiaibot can easily be integrated into your website with just a little technical knowledge. 

Creating a story for a website

  1. Create a project
  2. In your workspace, you can create a new project by clicking the blue plus button in the lower left corner.
  3.  toggle_blue_big_plus.png
  4. Create a story
  5. You can create a story with another click on the blue plus button in the lower left corner.
  6. Give the story a name and select the channel on which you want your story to run. In this case, you should select Website here.
  7. If you would like to create a story for the Facebook Messenger channel, you can find instructions here.
  8. English_Story_New.png
  9. After you have selected the name and language for the story, and confirmed your selection, the Story Builder will open automatically.
  10. Fill the story with content
  11. On the right you will find the widgets (Text, Decision element, User input, Handover, Media). You can drag and drop them (click and hold, then drag) to the left side and position them. 
  12.  widgets_english.png
  13. Important
  14. The logic dictates that some widgets can only come after certain elements, so some widgets may not be active at the beginning.
  15. Save/publish
  16. To save your story, move the mouse to the blue button with the arrow.
  17. Now select the item Save as draft.
  18.  safe_draft.png
  19. Once the design has been saved, click the Publish option.
  20. publish.png
  21. Activate
  22. To activate the chatbot, click the switch in the upper right corner once. The activated status should be displayed in blue( Bildschirmfoto_2020-06-09_um_13.35.40.png).
  23. Story_builder.png
  24. Leave the Story Builder
  25. To get to the next step you have to leave the Story Builder. You do this by clicking the arrow in the circle.
  26. Bildschirmfoto_2020-06-09_um_13.36.33.png


Integrating aiaibot via a website

  1. Go to your project settings
  2. You can find the settings in your project under the settings_2.png Settings item.
  3. settings_chabot_en.png
  4. You can then find all settings for your chatbot under the Chatbot tab.
  5.  settings_chatbot_en.png
  6. Configure your domain in the project settings
  7. To ensure that your chatbot can only work on your site, you must first configure your domain under Website > Domains. In our project it looks something like this:
  8.  domains_en.png 
  9. In the settings, you can configure up to five domains so that your chatbot can also work on preview pages or in test environments.
  10. Integrate the code via your website
  11. Once we have configured the domains for your website, you can insert the code, which you can find under Website Website integration, into your template. For this to work, you need access to the source files from your website. To make aiaibot available on every subpage, the code must be loaded on every page:
    <title>Your Website</title>
    <!-- ... -->
    <script type="text/javascript" src="" data-aiaibot-key="{{dein-schlüssel}}" defer></script>  




Was this article helpful?
1 out of 3 found this helpful