Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PoC] Dialogflow pre-survey chatbot #425

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

GPaoloni
Copy link
Collaborator

@GPaoloni GPaoloni commented Mar 17, 2023

Description

This PR adds the require code to support migrating our pre-survey chatbot to Google Dialogflow ES.
The bot used here can be found in GCP console. The definition for the bot was done manually via console. You may not have access to the bot's definition. If that's the case, ask me so I can send you an invite.

Simlarly to #424, this PR adds two functions, which do the same as in the mentioned PR. Studio changes are analogous too. The only substantial difference between the two is that this one uses Google Dialogflow library instead.

Note: Since GCP does not provides a way to interact with their APIs using API keys, you need to generate a key pair for the service account, which is a json file that should remain private. Because of this, the file must not be published to our public repo. To sort this, I dropped the file under assets/service-account-key.private.json and deployed the local version with ❯ twilio serverless:deploy --runtime=node14 --service-name=serverless --environment=production --force. If we go this way, the json file should live in AWS S3/SSM and bundle it at deploy time.

Checklist

Verification steps

Base automatically changed from gian_CHI-175-lex to master July 26, 2023 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant