Comments (6)
The code should be virtually the same, although you'd probably want to use Express instead.
from dialogflow-conversation-components-nodejs.
In addition to what @Fleker mentioned, this sample uses Dialogflow.
We have the Actions SDK conversation components sample that provides a better example for Actions SDK.
from dialogflow-conversation-components-nodejs.
I have this code, but it's not working.
`'use strict';
const express = require('express');
const bodyParser = require('body-parser');
var exps = express();
exps.use(bodyParser.json());
const {actionssdk} = require('actions-on-google');
const app = actionssdk({debug: true});
const asyncTask = () => new Promise(
resolve => setTimeout(resolve, 1000)
);
exps.post('/', function(request, response) {
app.intent('actions.intent.MAIN', (conv) => {
return asyncTask()
.then(() => conv.ask('Hi, this is a test!'));
});
});
express().use(bodyParser.json(), app).listen(3000);
from dialogflow-conversation-components-nodejs.
What does your fulfillment URL look like in your action package?
You seem to be using the root '/' endpoint to handle requests.
You may need to include a trailing '/' in your fulfillment URL if you have not already, or the requests will not be properly routed to the correct handler.
i.e -
In order to properly handle requests, specify your fulfillment URL as http://example-fulfillment-url.com/ instead of http://example-fulfillment-url.com
from dialogflow-conversation-components-nodejs.
My fulfillment URL is already like this, and still not working. I don't know what should I do
from dialogflow-conversation-components-nodejs.
Closing due to no direct issue with the sample itself. This is a general question and is better suited for Stack Overflow -- Github issues are for reporting bugs contained in Actions on Google samples or client libraries, thank you for understanding.
from dialogflow-conversation-components-nodejs.
Related Issues (16)
- Validation Errors HOT 5
- Where is the code for firebase when using google actions sdk HOT 1
- Replace surface capability check lines with conv.surface.capabilities.
- Error: unknown response type HOT 3
- Error getting documents: Error: Unknown response type: HOT 13
- Unable to retrieve parameters from previous context in code HOT 1
- Error Unknown response type Json HOT 2
- FetchError: request to an json Uri of my sap system HOT 4
- how to use without firebase? HOT 1
- Media response MP3 live streaming specifications HOT 1
- Upgrade API AI version HOT 1
- Add Device Screenshots of Components HOT 1
- Sample seems to be broken HOT 9
- In pure node + express without firebase HOT 10
- Missing array braces on button assignment in card creation line 130 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dialogflow-conversation-components-nodejs.