Questions tagged dialogflow-es

Explore the latest questions and answers asked by our top developers.

Set Dialogflow intent with Dialogflow PHP client library

I’m tying to send a user message to Dialogflow with the intent set (to avoid the default welcome intent), but I can’t find a way to simply specify the intent. I am trying $this->agentResponse->setIntent(‘myIntent’); return $this->agentResponse->toJsonResponse(); But it’s just not working. What am I doing wrong? Source: Laravel

By Dan E
Published
Categorised as dialogflow-es, laravel, php Tagged , ,

How to initiate outbound call with Twilio and ask questions using Dialogflow

I’m a having a problem with Twilio and Dialogflow integration. My objective is to let Twilio call the user then introduce itself and give instruction which is when the user clicks any key, it must fetch questions from Dialogflow and deliver it to user. The response for each question must be recorded. Is it possible […]

DialogFlow – What is the best practice to handle Fulfillment using PHP & google/cloud-dialogflow library

I am able to receive requests on Dialogflow Intent fulfillment event on my server [Laravel Framework – PHP] But i am unable to handle the webhook request using the Offical Google Dialogflow Library for PHP. I am not sure if i am understand it right, but according to google dialogflow docs. When an intent is […]

Dialogflow v2 PhP Set Context in Detect Intent

I am trying to set the context with the following code. $text = "Some Text"; $sessionsClient = new SessionsClient(array(‘credentials’ => base_path(‘/google-cloud.json’))); $session = $sessionsClient->sessionName(‘[project-id]’, uniqid()); $textInput = new TextInput(); $textInput->setText($text); $queryInput = new QueryInput(); $queryInput->setText($textInput); $textInput->setLanguageCode(‘en-US’); $queryParams = new QueryParameters(); $contextInput = new Context(); $contextInput->setLifespanCount(1); $contextInput->setName(‘Input_Text’); $queryParams->setContexts(array($contextInput)); $optionalsParams = array(‘queryParams’ => $queryParams); $response = $sessionsClient->detectIntent($session, […]

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq