Newo Chat Integration
Unlike the Talking Head integration, which also includes a text-only option, the Newo Chat integration is only text. This integration enables a Digital Employee to communicate through a web chat.
Newo Chat Integration Settings
When communicating with the Newo Chat, you can type your messages or click the microphone icon to speak to your Newo Digital Employee. The Newo Chat integration uses the OpenAI API to convert your speech to text. For this to work, you need an OpenAI API key. Not sure where to find that? Not sure where to find that? Here’s a quick guide. Once you have the API key, follow the steps below within the Newo platform:
- Navigate to the Integrations page from the left-side panel.
- Click the gear icon on the "Newo Chat" item.
- Add your "OpenAI API Key."
- Click Save.
Create a Newo Chat Connector
- Click the plus icon on the "Newo Chat" item.
- Add a "Title" and "Idn." For example, "th_connector."
- Optional: Add a "Greeting Phrase." Although, this is recommended to welcome the user and provide some instructions on how to use the Newo Chat. For example, "Hello, what can I assist you with today?"
- For the "Auto Open After" value, you can specify a time in seconds, after which the Newo Chat will be opened automatically. Enter either:
- -1 = will never open automatically
- 0 = will open immediately
- 0 >= will open after N seconds. For example, adding "3" would open the Newo Chat after 3 seconds.
- Leave the "Widget Script" empty, as it will be generated automatically after running the connector. You will need this script to add the Newo Chat to your website.
- Leave the "Client Secret" empty, as it will be generated automatically after running the connector. The "Client Secret" is a key that is used to authenticate the Newo Chat widget with the Newo Chat backend.
- For the "Client Website Base URL," you’d want to first set up a demo environment, which you can do by entering the domain where you’ll have the Newo Chat, but with some slight modifications.
- Let’s say you want the Newo Chat to work on "https://newo.ai".
- Add a "-" where there is a "." which, in this case, would be "https://newo-ai".
- Then add ".webchat.newo.ai" to the end.
- The final "Client Website Base URL" would be "https://newo-ai.webchat.newo.ai".
- Add a "Color" in HEX (e.g., #FFFFFF), which is the color of the Newo Chat icon that will be on your website.
- Add an "Agent Name," which will be displayed at the top of the web chat window.
- Add an "Agent Picture URL" or leave it empty for the default picture. This picture is used to identify the Digital Employee the user is communicating with.
- Click Save.
Enable the Newo Chat Connector
Once a connector is created, you will need to click the Run button to enable the connector, which will also generate the "Widget Script" and "Client Secret" when you open the settings of the connector again.
Demo the Newo Chat
Testing and debugging are an essential part of the process of creating a Digital Employee. You can test the conversational skills within the Sandbox chat. However, you may want to see how the Newo Chat appears on your website without making it live. This is where a demo website comes in handy.
- Click the three dots icon on the right of the created connector.
- Click Edit Settings.
- Copy the "Client Website Base URL" and paste it into a new browser window/tab with the following additions:
- Add "/?client=" to the end.
- Copy the generated "Client Secret" and paste it at the end (e.g., https://newo-ai.webchat.newo.ai/?client=09aec2b1-7122-4570-8538-2b4f0cb5051f).
- Add "&mode=newochat" to the end (e.g., https://newo-ai.webchat.newo.ai/?client=09aec2b1-7122-4570-8538-2b4f0cb5051f&newochat).
- The entered URL will open your website with the Newo Chat icon at the bottom-right corner. You can now test out the functionality in this demo environment before going live.
Going Live! Add Code to a Website
- Click the three dots icon on the right of the created connector.
- Click Edit Settings.
- Change the “Client Website Base URL” to your website URL without the modifications made for the demo (e.g., www.newo.ai).
- Copy the generated “Widget Script” to your clipboard and add it to your website's HTML code right before the end of the body tag.
- Ensure you Save the updated connector.
- Publish your website and ensure the Newo Chat icon appears at the bottom-right corner of your website.
Updated 3 months ago