Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

DialogFlow website chatbot (Quick replies) is not working #350

Open
hammad-air opened this issue Feb 8, 2023 · 1 comment
Open

DialogFlow website chatbot (Quick replies) is not working #350

hammad-air opened this issue Feb 8, 2023 · 1 comment

Comments

@hammad-air
Copy link

Recently, I am facing issue when I add
agent.add(new Suggestion('Yes')).

It is not working when I check it on DialogFlow Messenger (Website chatbot integration one)

@hammad-air
Copy link
Author

Resolved by myself :) :

const payload = {
richContent: [
[{
type: "chips",
options: [{
text: "Yes ✅",
},
{
text: "No❌",
}
],
},],
],
};
agent.add(
new Payload(agent.UNSPECIFIED, payload, {
rawPayload: true,
sendAsMessage: true,
})
);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant