From 1974474480880c263045ff39b315244a9975a0ee Mon Sep 17 00:00:00 2001 From: Dominic Date: Tue, 18 Feb 2025 18:16:27 -0800 Subject: [PATCH] Updated the readme --- examples/phone-chatbot/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/phone-chatbot/README.md b/examples/phone-chatbot/README.md index a8d164f58..a8a1cee8e 100644 --- a/examples/phone-chatbot/README.md +++ b/examples/phone-chatbot/README.md @@ -108,14 +108,15 @@ curl -X POST "http://localhost:7860/daily_start_bot" \ ### New! Using Gemini with Daily -If you want to spin up a Gemini-based bot for this demo, instead of an OpenAI-based bot, call the same properties above but on the `daily_gemini_start_bot` endpoint instead. For example: +We have introduced a new example file that uses Gemini. You can find the code within bot_daily_gemini.py. +If you want to spin up a Gemini-based bot for this demo, instead of an OpenAI-based bot, call the same properties above but on the `daily_gemini_start_bot` endpoint instead. + +For example: ```shell -curl -X "POST" "http://localhost:7860/daily_gemini_start_bot" \ - -H 'Content-Type: application/json; charset=utf-8' \ - -d $'{ - "dialoutNumber": "+12125551234" -}' +curl -X POST "http://localhost:7860/daily_gemini_start_bot" \ py pipecat + -H "Content-Type: application/json" \ + -d '{"detectVoicemail": true}' ``` Any request body properties supported by `/daily_start_bot` (such as "detectVoicemail", "dialoutnumber", etc) can also be passed to `/daily_gemini_start_bot`. The only difference is that calling the Gemini endpoint will start a Gemini bot session.