Run Coze Chat Bot

In this section, we will show you how to make Coze Bot speak in NYRA-Agent playground.

Make sure the Nyra-Agent playground is running. If it’s not, follow the Run Playground guide to start the playground.

Before proceeding, ensure you have the following information prepared:

  1. Coze Information:

    • Coze Bot ID

    • Coze Token

    • Coze Base URL (Only needed if you're accessing a non-global environment)

  2. STT Information: Any supported STT service can be used. Deepgram is an easy-to-use option to register and get started.

  3. TTS Information: Any supported TTS service can be used. Fish.Audio is another easy option to register and start using.

  4. RTC Information: Currently, only Agora RTC is supported. You can sign up at Agora and ensure you have your App ID and App Certificate ready for configuration in your .env file.

Steps

To configure your Nyra-Agent, follow these steps:

  1. Open the Playground: Navigate to localhost:3000 to access the Nyra-Agent playground.

  2. Select Graph Type: Choose the voice_assistant graph type.

  3. Open Module Picker: Click on Module Picker to open the module selection menu.

  4. Select STT/TTS Module: If your preferred STT or TTS module is not already selected, choose it from the dropdown list. Remember to configure the module with the required details such as API keys and other settings.

  5. Configure LLM: For the LLM module, click the dropdown and select Coze Chat Bot.

  6. Apply Module: Click Save Changes to apply the selected module to the graph.

  7. Property Configuration: Click the button next to the graph selection to open the property configuration. A list of configurable properties for the Coze Chat Bot module will be displayed.

  8. Configure Coze Properties: Enter the prepared Coze Bot ID, Coze Token, and Coze Base URL (if required) in the corresponding fields.

  9. Save Properties: Click Save Changes to apply the properties to the Coze Chat Bot module.

  10. Confirmation: If a success toast appears, the properties have been successfully applied to the Coze Chat Bot module.

Using Azure STT

Azure STT is integrated within RTC extension module. That's why if you want to use Azure STT, you will need to select voice_assistant_integrated_stt graph type.

Last updated