Intent response text not pass with Fulfillment card.

7 views
Skip to first unread message

Sanjaya Prasanna

unread,
Apr 28, 2020, 12:28:44 PM4/28/20
to dialogflow-enterprise-edition-users
Hi Guys, 

I have created a new intent with fulfillment enabled. I add some text to intent response & fulfillment has a card with an image and button with a link. My problem is When the User asks a question in Messenger, It will only trigger that fulfillment card. to trigger intent text before coming to that card. Can Anyone help me no that? 

Here is my Fulfillment card function. 


function speakDoctor(agent){
// Sending cards
    const card = new Card('Speak to a Doctor');
    card.setText('');
    card.setButton({text: 'Find more details', url: 'https://itsyourlife.net.my/speak-to-a-doctor'});
    agent.add(card);
}

intentMap.set('Who can I speak to about HPV?', speakDoctor); 



Akhil Misri

unread,
Apr 28, 2020, 11:49:36 PM4/28/20
to dialogflow-enterprise-edition-users
Hi Sanjaya,

Try this once:

agent.add(`This message is from Dialogflow's Cloud Functions for Firebase editor!`);
agent.add(new Card({
   title: `Title: this is a card title`,
   text: `This is the body text of a card.  You can even use line\n  breaks and emoji! 💁`,
   buttonText: 'This is a button',
  })
);
agent.add(new Suggestion(`Quick Reply`));
agent.add(new Suggestion(`Suggestion`));
Reply all
Reply to author
Forward
0 new messages