by plutoless · v0.0.11
The Agora Conversational AI extension enables developers to build voice assistants powered by Dify Agent.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: qz Version: 0.0.9 Type: extension
This extension provides an endpoint to make Dify agents work with Agora’s Conversational AI Engine to easily turn your Dify agents into voice assistants.
Note: Currently this extension is not available to use with Shengwang account. If you are from Mainland China, please make sure you register an account from Agora.
APP To turn a Dify agent into a voice assistant, choose one from your agent library.
Agora App ID The Agora App ID to use for RTC service. Get it from Agora Console. Note to enable the Agora Conversational AI service in the Agora Console.
Agora RESTful Customer ID The Agora RESTful Customer ID to use for RTC service. Get it from Agora Console.
Agora RESTful Customer Secret The Agora RESTful Customer Secret to use for RTC service. Get it from Agora Console.
ASR Vendor The ASR vendor to use for speech recognition. Choose one from the list below.
ASR Language The BCP-47 language tag identifying the primary language used for agent interaction.
ASR Params The parameters for the ASR vendor. The parameters are different for each vendor, please refer to the documentation for more information.
TTS Vendor The TTS vendor to use for voice synthesis. Choose one from the list below.
TTS Vendor Params The parameters for the TTS vendor. The parameters are different for each vendor, please refer to the documentation for more information.
Azure
{
"key": "<your api key>",
"region": "eastasia",
"voice_name": "en-US-AndrewMultilingualNeural"
}
11labs
{
"api_key": "<your api key>",
"model_id": "eleven_flash_v2_5",
"voice_id": "pNInz6obpgDQGcFmaJgB"
}
Greeting Message The message to greet the user when the conversation starts.
Failure Message The message to tell the user when the conversation fails.
Agora App Certificate The Agora App Certificate to use for RTC service. Get it from Agora Console. Only needed when security token is enabled for your Agora project.
API Key The API Key to protect your Dify endpoint.
Once you finish the configuration, you'll fnd the APl in the endpoint as follows:
https://qv90***.ai-plugin.io/convoai-web/<file>
Replace <file> with index.html,
Then you may navigate to the following URL to access the integrated Conversational Al web page.
https://qv90***.ai-plugin.io/convoai-web/index.html
You can also use the API directly without the web page. The API endpoint is:
API Endpoint: https://qv90***.ai-plugin.io/convoai-start
| key | value |
|---|---|
| base_url | The base url of the extension |
| channel | The channel id of the extension |
Example cURL:
curl 'https://qv90***.ai-plugin.io/convoai/convoai-start' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: zh,en;q=0.9,zh-CN;q=0.8' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
--data-raw '{"base_url":"https://qv90***.ai-plugin.io","channel":"jh0y8fgk7"}'
API Endpoint: https://qv90***.ai-plugin.io/convoai-stop
| key | value |
|---|---|
| agent_id | The agent id of the extension |
Example cURL:
curl 'https://qv90***.ai-plugin.io/convoai/convoai-stop' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: zh,en;q=0.9,zh-CN;q=0.8' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
--data-raw '{"agent_id":"1NT29X0ZX0JYPJ96CCL8F4Y4VUEGR566"}'