dialogflow

Dialogflow v2 API - cards not shown in the simulator

你离开我真会死。 提交于 2020-01-15 10:07:35
问题 I've a webhook for fulfillment. Below is the code that's responding back let result_obj = { "fulfillmentText": "This is a text response", "fulfillmentMessages": [ { "text": { "text": [ "this is test" ] } }, { "card": { "title": "card title", "subtitle": "card text", "imageUri": "https://assistant.google.com/static/images/molecule/Molecule-Formation-stop.png", "buttons": [ { "text": "button text", "postback": "https://assistant.google.com/" } ] } } ] } Below is the result from dialogflow GUI

Dialogflow messenger-referrals

对着背影说爱祢 提交于 2020-01-15 09:33:11
问题 I'm trying to get the GET_STARTED payload with reference parameters firing to my chatbot running on a node express.js instance. If I do a get started with refereral call with no active conversation thread, I can access the parameters no problem. The issue is, however, if I click on a referral link with a conversation thread with my bot already open. I get no post to my fulfillment server. I have enabled messaging_referrals within the facebook developer console, is there some Intent or Event I

Can you force Dialogflow to extract the date-time entity instead of separate date and time entities?

允我心安 提交于 2020-01-14 03:34:07
问题 I'm building a Google Home skill using Dialogflow. I want the user to be able to say a date time such as "today at 3pm", "Wednesday at 11am", or "August 10 at 5pm." Dialogflow has several prebuilt entities including: date, time, and date-time. For some reason the system seems to always parse date and time separately instead of just as date-time. I've tried putting in several examples and manually setting the entity type to date-time but whenever I add another one it always parses them

How to integrate dialogflow with website?

邮差的信 提交于 2020-01-12 04:49:07
问题 I created Intents, entities so and so using 'Dialogflow chat-bot', Now,I'm trying to integrate dialogflow with my website(html), I followed the documented instructions from the dialogflow official website, still I'm confused , after enabling the web demo option, How to edit the contents inside the attached image and how to launch chat-bot in my website? I followed instructions from : "https://dialogflow.com/docs/integrations/web-demo" Thank you 回答1: Dialogflow doesn't provide any direct way

Prompt user for input upon bot start up

有些话、适合烂在心里 提交于 2020-01-11 13:01:13
问题 I am creating a chatbot in dialogflow, and I want it to prompt the user for input as soon as it load. E.g "Hi, how may I help?" I am able to get it to response once a user says hi, but not without that input. Any ideas? 回答1: Check out Dialogflow Events Events allow you to invoke intents based on something that has happened instead of what a user communicates. More specifically Welcome Event, you can start typing "Welcome" in the Events section of an intent Common events like WELCOME events

Webhook call failed. Error: Failed to parse webhook JSON response: Expect message object but got: [Chinese letters]

試著忘記壹切 提交于 2020-01-11 12:07:49
问题 I'm building my own WebhookClient for dialog flow. My code is the following (using Azure Functions, similar to Firebase Functions): module.exports = async function(context, req) { const agent = new WebhookClient({ request: context.req, response: context.res }); function welcome(agent) { agent.add(`Welcome to my agent!!`); } let intentMap = new Map(); intentMap.set("Look up person", welcome); agent.handleRequest(intentMap); } I tested the query and the response payload looks like this: {

Actions on Google: Unable to Close Convo in DialogFlow Fulfillment

Deadly 提交于 2020-01-06 09:05:33
问题 I am on ActionOnGoogle V2 SDK, and using Firebase Functions I tried this code... import * as functions from 'firebase-functions'; const admin = require('firebase-admin'); const serviceAccount = require("../key/secretkey.json"); import {dialogflow, BasicCard, SimpleResponse, List, Carousel} from 'actions-on-google'; admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: "https://dburl.com" }); const getSomethingPromize = admin.database().ref(`/user_list/`)

Unable to see client id

时光毁灭记忆、已成空白 提交于 2020-01-06 08:12:57
问题 We are trying to setup the account linking process using Google SignIn. In this, it asks us to copy the Client Id at Step 5: Open Client Information and take note of the value of Client ID issued by Google to your Actions. However, I don't find the Client ID field in the Account Linking section at all. Is there an alternative way to generate this? I tried using the console in developers.google.com and created an Oauth 2.0 Client Id of Web Application type, but using the Client ID generated

Unable to see client id

懵懂的女人 提交于 2020-01-06 08:12:24
问题 We are trying to setup the account linking process using Google SignIn. In this, it asks us to copy the Client Id at Step 5: Open Client Information and take note of the value of Client ID issued by Google to your Actions. However, I don't find the Client ID field in the Account Linking section at all. Is there an alternative way to generate this? I tried using the console in developers.google.com and created an Oauth 2.0 Client Id of Web Application type, but using the Client ID generated

not able to extract entities from user phrases when uploading intent using api

Deadly 提交于 2020-01-06 05:26:08
问题 I am trying to build an intent using DialogFlow api. Intent name: makePizza Phases: ['I want to order pizza', 'I want to order small pizza'] Response: ['Your pizza is on its way'] After uploading the intent, it looks like this: But if I make intent from the console and add phrase I want to order small pizza it automatically detects that keyword small is size parameter : size entity is already added in the agent. I understand that this can be achieved using below code: training_phrases_parts =