How to Import a GPT Template and Connect It to a Chatbot in WOZTELL

Import a Template and Set Up a GPT Assistant in WOZTELL

Import a template and set up a GPT assistant step by step 

In this article, you will learn how to import a template into the WOZTELL builder and connect it with an OpenAI (GPT) assistant. With this setup, you can automate conversational flows using artificial intelligence, without the need to program.

Notes
Note:
Before starting, make sure you have your WOZTELL account activated and a GPT assistant already created and connected to an OpenAI account.


Install the necessary extension   

Before you start, we need to install the GPT extension
  1. Go to the WOZTELL platform and head to the "Marketplace".

  1. Search for the extension "ChatGPT" and click on "Learn more".
  1. Click on "Get Extension" to start the installation.
 
  1. Select the latest version, assign an identifying alias, and click on "Install".

  1. A configuration window will pop up. To complete it, you will need to get the accessToken of the chatbot you are going to use.

Obtain the chatbot accessToken

Option 1: From advanced chatbot settings

  1. Go to the "Builder" panel and select the chatbot you wish to update.


  • 3. Open the "Chatbot Manager" and access the advanced settings. Then, go to the "Config Map".


    4. Find the field "accessToken. It is the key that connects the AI assistant with the chatbot builder.
    5. Copy the entire sequence.


    Option 2: From the chatbot in OpenAi


    2. In the left sidebar, select "Api Keys" 


    3. In the top right of the screen, click on the option "Create new secret key"

    4. Assign a name to the key and click the button "Create secret key"


    5. Copy the code


    6. Return to the extension configuration window and paste the code in the field "API Key".


    7. Click on "Save" to save the changes.
     
     Import a chatbot template
    1.  In the top panel "Builder", click on "Import Chatbot".

    2. In the popup window, select the tab "Chatbot Templates".
    3. Choose the most recent template (the first one) and click on "Import".
    4. Add an identifying name and click again on "Import".


    5. The system will automatically open the builder with the newly imported flow.

    Configure the new flow

    1. Select the general node and go to its settings in the right panel.
    2. Go to the section "Pre-actions" and click on "Advanced".


    3. A popup window will open with the advanced settings.


    4. Select the connection and the agent that will execute the responses.
     

    5. Click on "Save" to save.

     

     Activate the chatbot

    1. Go to the "Channels" panel and click on "Edit" in the corresponding channel.


    2. In the left sidebar, go to "Chatbot Settings".


    3. Click on "New Chatbot" and select the chatbot you imported. Note: We placed the identifying name in the "Alias" section from step 4.


    5. Activate the chatbots you want to use, deactivate the ones you don’t, and click on "Save".

     
    Done! Your chatbot is now configured.

    Connection verification   

    To confirm that the connection between the assistant and the chatbot works correctly:
    1. Go to the "Platform" section from the left panel to identify the linked WhatsApp number.
    1. Send a message from another number to that channel.
    2. Verify that the chatbot responds correctly. 

    Done! You have confirmed that your chatbot has been set up correctly.

    Frequently asked questions  

    Where should the assistant's payload be added, in the same node or a new one?
    You can add it in the same node or in a new one. Both options are valid as long as the flow logic is respected.

    What inputs can the chatbot interpret?
    Text and images. Audio messages are not supported.

    What triggers the global node?
    The global node responds to any text or image message. If there are other higher-priority triggers, they will execute first.

    Can I use a different flow for different triggers? 
    Yes. You can work with a separate flow or integrate everything into the same tree, depending on what you need.