Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xavidop/dialogflow-cx-webhook-typescript
Webhook for Dialogflow using Typescript types and local debugging
https://github.com/xavidop/dialogflow-cx-webhook-typescript
dialogflow dialogflow-cx google-cloud google-cloud-function google-cloud-platform serverless
Last synced: 9 days ago
JSON representation
Webhook for Dialogflow using Typescript types and local debugging
- Host: GitHub
- URL: https://github.com/xavidop/dialogflow-cx-webhook-typescript
- Owner: xavidop
- License: apache-2.0
- Created: 2023-10-16T08:29:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T17:01:02.000Z (about 1 month ago)
- Last Synced: 2024-12-26T12:25:42.838Z (14 days ago)
- Topics: dialogflow, dialogflow-cx, google-cloud, google-cloud-function, google-cloud-platform, serverless
- Language: JavaScript
- Homepage:
- Size: 457 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Deploying your Dialogflow CX Webhook
With the code ready to go, we need to deploy it on Google Cloud so it can be connected to the agent.
Before we continue, make sure that you have enabled the Cloud functions API enabled:
```bash
gcloud services enable cloudfunctions.googleapis.com
```Now we can deploy our webhook with gcloud CLI on the root folder:
```bash
gcloud functions deploy my-agent-ts-function --runtime nodejs18 --trigger-http --entry-point HandleWebhookRequest
```The public endpoint of this function is going to have this format:
```bash
https://-.cloudfunctions.net/
```So imagine that we have deployed this function in `us-central1` and the project `test-cx-346408`, the URL will look like this:
```bash
https://us-central1-test-cx-346408.cloudfunctions.net/my-agent-ts-function
```Now the code is ready to be tested on the Console!