Más contenido relacionado Similar a Conversation With Your Application Using DialogFlow and CloudFunctions (20) Más de Cliffano Subagio (20) Conversation With Your Application Using DialogFlow and CloudFunctions1. Conversation With Your Application
Using Dialogflow And CloudFunctions
Cliffano Subagio (@cliffano) - Shine Solutions
10. Dialogflow
* Conversation interface
* Natural language processor
* Speech to text, text to speech
* Intents, entities, fulfilment
* Multi languages support
* Multi services integration
11. Cloud Functions
* You already know what it is
* Functions as a service
* Event driven
* Support node.js, Python, and Go
13. Convo
* node.js library for voice and text app
* Specification based
* Generates a Dialogflow agent
* Generates a CloudFunctions middleware
24. OpenAPI-CloudFunctions - Data Flow
24
“Build job ABC”
“Job ABC has been
added to the queue”
{
“queryText”: “Build job ABC”,
“parameters”: {
“jobName”: “ABC”
},
“intent”: {
“displayName”: “build-job”
}
}
POST /job/ABC/build
200 OK
{
“fulfllmentText”: “Job ABC has been added to the queue”,
“payload”: { “google”: { “richResponse”: { “items”: [
“simpleResponse”: {
“textToSpeech”: “Job ABC has been added to the queue”,
“displayText”: “Job ABC has been added to the queue”,
}]}}}
}
{
“inputs": [
{
"intent": "actions.intent.TEXT",
"rawInputs": [
{
"inputType": "VOICE",
"query": “Build job ABC”
}
]}]}
"expectedInputs": [
{
"inputPrompt": {
"richInitialPrompt": {
"items": [ { "simpleResponse": {
"textToSpeech": “Job ABC has been added to the queue"
}
}]}}}]}
27. What’s Next?
1. Identity forwarding
2. HTTP basic auth on middleware
3. More services integration
4. More applications!
30. Links
• https://github.com/cliffano/convo
• https://github.com/cliffano/convo-generator
• https://github.com/cliffano/convo-node
• https://github.com/cliffano/convo-thomas
• https://github.com/cliffano/convo-hacker-news
• https://github.com/cliffano/convo-hacker-news-helper
• https://github.com/cliffano/convo-jenkins
• https://github.com/cliffano/convo-jenkins-helper
Repositories
• https://www.npmjs.com/package/generator-convo
• https://www.npmjs.com/package/convo-node
• https://www.npmjs.com/package/convo-hacker-news-helper
• https://www.npmjs.com/package/convo-jenkins-helper
Published Libraries