dialogflow-fulfillment

manipulating a specific context using output context response

荒凉一梦 提交于 2020-06-29 06:44:52
问题 I'm currently trying to change a specific value of one of my context using webhook response and from what I found, the following should work: { "fulfillmentText": ${textToSpeech}, "fulfillmentMessages": [{ "text": { "text": [${text}] } }], "payload": { "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": ${textToSpeech}, "displayText": ${text} } } ], "suggestions": ${suggestions}, "linkOutSuggestion": { "destinationName": "Feedback", "url"

manipulating a specific context using output context response

拟墨画扇 提交于 2020-06-29 06:44:37
问题 I'm currently trying to change a specific value of one of my context using webhook response and from what I found, the following should work: { "fulfillmentText": ${textToSpeech}, "fulfillmentMessages": [{ "text": { "text": [${text}] } }], "payload": { "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": ${textToSpeech}, "displayText": ${text} } } ], "suggestions": ${suggestions}, "linkOutSuggestion": { "destinationName": "Feedback", "url"

Dialogflow Messenger V1 not rendering rich response messages

放肆的年华 提交于 2020-06-29 05:05:16
问题 How can I get Dialogflow Messenger v1 to display moch response messages, specifically Quick Replies (a button that sends text when clicked)? When provided with the below WebhookResponse (v2), the Dialogflow Console debugger correctly displays text_1, quick_reply_1, quick_reply_2, text_2 However, Dialogflow Messenger only displays the plain text, i.e. 'text_1 text_2' See screenshot { "responseId": "XXX", "queryResult": { "queryText": "cancel", "parameters": {}, "allRequiredParamsPresent": true

Unlinking the Google account from DialogFlow conversation

邮差的信 提交于 2020-06-29 03:50:33
问题 How can we Unlink the google account from the particular intent in inline code? There are no built-in actions to trigger sign out like there are for sign in (actions_intent_SIGN_IN). Suppose user by mistaken logged in via some another account and now he wants to switch. How we can provide this facility? 回答1: Currently it is not possible to unlink the Account via Voice. But the user can reset the Account at the Action Directory on the bottom of the side. 来源: https://stackoverflow.com/questions

Convert Dialogfow duration system entity from minutes to seconds in JavaScript

萝らか妹 提交于 2020-06-09 06:46:42
问题 I am looking for ways to convert a Duration (@sys.duration) system entity from Dialogflow in JavaScript code from minutes to seconds. I ask the user for a certain duration, where the user can answer, e.g.: 20 minutes 5 minutes etc. that input is saved into a variable the_duration. Now to do certain calculations, I need to convert this into seconds. How can I achieve this? EDIT: Perhaps it would help if I need to extract the number from the string? I've tried looking for this way, but provided

adding custom JSON payloads for TELEGRAM in Dialogflow to get users to share their phone number

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-30 19:25:32
问题 the function below is supposed to provides the fulfillment to the share_your_phone_number intent. When the intent is invoked, the share your phone number keyboard is displayed for the user in telegram. function share_your_phone_number(agent) { agent.add(`Welcome.`); agent.add(new Payload("telegram", { "text": "Please click on button below to share your number", "reply_markup": { "one_time_keyboard": true, "resize_keyboard": true, "keyboard": [ [ { "text": "Share my phone number", "callback

adding custom JSON payloads for TELEGRAM in Dialogflow to get users to share their phone number

我的梦境 提交于 2020-05-30 19:25:31
问题 the function below is supposed to provides the fulfillment to the share_your_phone_number intent. When the intent is invoked, the share your phone number keyboard is displayed for the user in telegram. function share_your_phone_number(agent) { agent.add(`Welcome.`); agent.add(new Payload("telegram", { "text": "Please click on button below to share your number", "reply_markup": { "one_time_keyboard": true, "resize_keyboard": true, "keyboard": [ [ { "text": "Share my phone number", "callback

403 IAM permission 'dialogflow.sessions.detectIntent' on 'projects/None/agent' denied. with flask

十年热恋 提交于 2020-04-17 22:51:47
问题 in /send_message fulfillment_text = detect_intent_texts(project_id,, message, 'en') what should be passed as 2nd argument. # /index.py from flask import Flask, request, jsonify, render_template import os import dialogflow import requests import json import pusher import tryy pusher_client = pusher.Pusher( app_id=os.getenv('PUSHER_APP_ID'), key=os.getenv('PUSHER_KEY'), secret=os.getenv('PUSHER_SECRET'), cluster=os.getenv('PUSHER_CLUSTER'), ssl=True) final = [] app = Flask(__name__) @app.route(

Is there a way to retrieve the conversation history in Dialogflow?

余生长醉 提交于 2020-03-02 03:56:27
问题 Is there a way to obtain the full conversation between the user and agent. Pretty much similar to what I get by clicking the history tag but programmatically. The point is to save the interaction between user and agent as text. Thank you guys in advanced! 回答1: There's no API to retrieve the history from Dialogflow directly. But what you can do is enable logging. Agent Settings > General > Log Settings > Log interactions to Google Cloud And all the interactions will be logged into Google

Is there a way to retrieve the conversation history in Dialogflow?

老子叫甜甜 提交于 2020-03-02 03:55:25
问题 Is there a way to obtain the full conversation between the user and agent. Pretty much similar to what I get by clicking the history tag but programmatically. The point is to save the interaction between user and agent as text. Thank you guys in advanced! 回答1: There's no API to retrieve the history from Dialogflow directly. But what you can do is enable logging. Agent Settings > General > Log Settings > Log interactions to Google Cloud And all the interactions will be logged into Google