Django

Step-by-Step Guide: Integrating Interworky AI Agent into Django websites

Step-by-Step Guide: Integrating Interworky AI Agent into Django

1. Log into the Interworky Dashboard

Create an account or Login at https://interworky.com

  • After creating your Interworky account, log into the Interworky dashboard.

  • Navigate to the Integration Page.

  1. Locate the Embed Code

On the Integration Page, locate the Embed Code section and capture your API key.

Integration Page on Interworky Dashboard

3. Adding Interworky to Your Django Project

Django supports embedding JavaScript in templates. Follow these steps:

Method 1: Directly Adding the Script to Your Django Template

  1. Open your Django template file where you want to add the chatbot (e.g., base.html or index.html).

  2. Paste the Interworky script inside the <body> tag.

📌 Example (base.html in Django Templates Folder):

📌 ^^ Replace "your-api-key-here" with your Interworky API key from the dashboard.

Method 2: Using Django’s Static Files Approach

If you prefer to load the script dynamically, follow these steps:

  1. Create a new JavaScript file in your Django static folder:

  1. Add the script to interworky.js:

  1. Include this script in your Django template (base.html):

  1. Verify the Integration

  • Open your Django website in the browser.

  • Check if the Interworky chatbot widget appears.

If you don’t see it, check the browser console (F12 → Console) for errors.

Last updated