Prerequisites
- Configure a speech provider in the Voice Preview Settings section of the Project settings.
- Access to Voice Gateway.
- Configure a Flow.
- For testing purposes, allow microphone access in your browser and, if needed, in your device settings.
Restrictions
- Click To Call currently doesn’t support DTMF input by default.
- Click To Call supports only the Dial transfer type for call transfers.
Configure a Click To Call Widget
When you generate the embedding code for the Click To Call widget in the Voice Gateway Endpoint settings, Cognigy.AI automatically creates an Application in the Voice Gateway Self-Service Portal. You can change the voice settings in the Application or Flow editor.
Configure the Widget
Configure the Widget
To embed a Click To Call widget into your website, follow these steps:
- In Deploy > Endpoints, click + New Endpoint and select Voice Gateway.
-
In the New Endpoint section, configure the following:
- Name — enter a unique name.
- Flow — select a Flow you previously created.
-
Click the Set Up Click To Call Integration button inside the Click To Call Embedding HTML field. The embedding code for the Click To Call widget is generated in a code editor. This step generates an Application in the Voice Gateway Self-Service Portal. The Application receives a name with the following pattern
Widget - <Cognigy.AI Project Name> - <Voice Gateway Endpoint Name>. - In the Click To Call Widget Settings section, configure the following:
- Enable Click To Call Widget — activate the toggle.
- AI Agent Name — enter the name displayed on the Click To Call widget, for example,
Package Support. - Tagline — enter the text displayed under the AI Agent name on the widget, for example,
Get help with your package. - AI Agent Avatar Logo URL — URL of the image to be displayed on the widget, for example,
https://www.<domain>.com/logo.png. If empty, the Cognigy.AI logo is used. - (Optional) Theme — select the color theme of the widget, for example, Clean white (default), Dark mode, or AI Purple.
- Display Live Transcription — toggle to show conversation transcript in the widget.
(Optional) Configure a Privacy Notice
(Optional) Configure a Privacy Notice
In Click To Call Widget Config in the Voice Gateway Endpoint settings, you can add a privacy notice with the following parameters:
Voice Configuration
When you generate the Click To Call embedding code, an application is created in the Voice Gateway Self-Service Portal. The speech provider label is automatically generated from a lowercase version of the name of the speech provider connection you configured, with spaces replaced by underscores. For example, if you named the connectionClick To Call EU, the label is click_to_call_eu.
The generated Application inherits all speech providers configured in the Voice Preview Settings section in the Project settings in Cognigy.AI. By default, the Application uses the speech provider configured in the Project settings for STT and TTS. For TTS, the Application uses the speech provider’s default voice. You can change the voice and speech provider of your AI Agent, for example, in the AI Agent Node or Set Session Config Node, without switching the default speech provider. If you set up a new speech provider in Cognigy.AI after the Click To Call application is created, make sure the new provider is configured in the widget Application in the Voice Gateway Self-Service Portal.