A simple response is required in addition to this type of response
See original GitHub issueHi,
I am having error when returning fulfillment response (A simple response is required in addition to this type of response). Following is the fulfillmentResponse
{
"error": "A simple response is required in addition to this type of response"
}
Information
DialogFlow API version: V2 API Node version: v8.10.0 actions-on-google version: ^2.6.0 body-parser version: ^1.18.3 express: ^4.16.4
Following is the code snippet
const app = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
const agent = dialogflow();
agent.intent("dummyIntent", (conv, input) => {
if (conv.action === "dummyAction") {
conv.ask(
new Carousel({
items: {
car: {
title: "Car",
description: "A four wheel vehicle",
synonyms: ["automobile", "vehicle"]
},
plane: {
title: "Plane",
description: "A flying machine",
synonyms: ["aeroplane", "jet"]
}
}
})
);
}
});
app.post("/webhook", agent);
app.listen(port, () => {
console.log("Server is up and listening on port" + process.env.PORT);
});
I have tried using new Image(), new BasicCard(), all giving same error.
Your help is much appreciated.
Thanks in advanced.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
AppResponse | Dialogflow and legacy Actions SDK
SimpleResponse. A simple response containing speech or text to show the user. Plain text of the speech output, e.g., "where do you want...
Read more >Exploring Actions on Google Responses: Simple Response
The Simple Response is a great way to as questions, end conversation or give display simple content to the user. Remember to bear...
Read more >Responses | Dialogflow ES - Google Cloud
Agents typically use a combination of static and dynamic responses. Multiple types of responses can be provided. The basic response type is a...
Read more >Response Options - Designing Surveys for Evaluations and ...
Most research protocols involving the protection of human subjects will require you to allow respondents to opt out at any time. However, failing...
Read more >Creating a dialog - IBM Cloud Docs
If you added more than one response type, you can click the Move up or down arrows to arrange the response types in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, as stated in this documentation,
So you need to add something like:
This will display a chat bubble just before the Carousel.
Regards
Hi @ataillefer ,
Thanks for reply.
I had added line
This is the fulfillment response
Chat bubble “This is category list” did not display. Instead it display fulfillmentText when using the “try it now” container. Please refer to attached image.
When I tried with my device, it did not show any chat bubble. I have no idea where does “fulfillmentText” set. I have searched about it, does it related to middleware as mentioned in this comment
Thanks.
Regards.