https://github.com/deepgram/dialogflow-example
Demonstrates how to use Deepgram with Google Dialogflow CX
https://github.com/deepgram/dialogflow-example
Last synced: 9 months ago
JSON representation
Demonstrates how to use Deepgram with Google Dialogflow CX
- Host: GitHub
- URL: https://github.com/deepgram/dialogflow-example
- Owner: deepgram
- License: isc
- Created: 2023-11-27T17:29:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T21:59:09.000Z (about 2 years ago)
- Last Synced: 2025-06-22T06:36:58.951Z (about 1 year ago)
- Language: JavaScript
- Size: 146 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dialogflow-example
This repository demonstrates using Deepgram to talk to a Google Dialogflow CX agent.
## Before you begin
1. Make sure your Google Cloud account and local environment are set up to use the Dialogflow CX Node.js Client. In other words, follow the "before you begin" instructions [here](https://googleapis.dev/nodejs/dialogflow-cx/latest/).
2. Create a Deepgram API key.
3. Create a Dialogflow CX agent. A [prebuilt agent](https://cloud.google.com/dialogflow/cx/docs/concept/agents-prebuilt) is a good way to get started quickly.
## Running the code
1. Copy `.env.example` into a file named `.env`. Update `.env` to replace the sample values with your own.
2. Install node modules:
```
npm install
```
3. Run the server:
```
npm run start
```
4. Point your browser to [http://localhost:3000/](http://localhost:3000/) to try out the demo. Chrome works best.
## Demo
This video shows a conversation with the [Small Talk Agent](https://cloud.google.com/dialogflow/cx/docs/concept/agents-prebuilt#small-talk). Turn on sound to hear the text-to-speech and barge-in.
[dialogflow-video-tts.webm](https://github.com/deepgram/dialogflow-example/assets/37026846/5eb8f943-f0ff-44ed-9ae9-93e22af40442)