Skip to main content
Echo Mode lets you send text or audio input for the PAL to speak. This mode is best suited when your application doesn’t require speech recognition or perception capabilities or if you already use a custom ASR/Perception pipeline.
Note: External ASR systems are typically slower and less optimized than Tavus’ built-in pipeline.

Prerequisites

Before you begin, ensure the following dependencies are installed:

Create an Echo PAL

1

Step 1: Get an API Key

  1. Go to the PAL Maker and select API Key from the sidebar menu.
  2. Click Create New Key to begin generating your API key.
  3. Enter a name for the key and (optional) specify allowed IP addresses, then click Create API Key.
  4. Copy your newly created API key and store it securely.
We cannot recover your API Key if you lose it.
2

Step 2: Create an Echo PAL

Use the following request to create a PAL:
cURL
3

Step 3: Create a Conversation

Create a conversation with your newly created pal_id:
cURL
4

Step 4: Create an App

Create a file named script.py and paste the following code:
This script starts a Flask app that connects to a Daily room and sends echo interaction messages to your PAL.
5

Step 5: Execute the Code

Run the script:
Replace <conversation_url> with the URL returned when creating your conversation.
6

Step 6: Send Echo Message

Send a POST request to your local server to trigger an echo message:
cURL
In this example, the PAL will respond by saying: “Hello there!”