Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Agent chat not responding when published

I’ve created an agent chat with a data source and when previewing it works well - returns correct answers.

 

But when I publish the chat with dialog flow messenger and include the link in a web page the chat window opens but doesn’t respond to any questions - ie. I can type a question and hit send but nothing is returned.

What am I doing wrong?

0 2 312
2 REPLIES 2

Hi @TonyTheBubble,

Welcome to Google Cloud Community!

It seems that you're getting an empty response when using Dialogflow Messenger. Please check if you're using the correct environment that you have set up for your app. In addition, make sure that the intents are properly configured and are in scope. Not every intent in the agent can be matched. Only intents in scope are considered as active intents. You can check the scope definition here.

Hope this helps.

Thanks for the reply.  It got me looking at a few things and I realised what I was doing wrong.

I wanted to quickly test the agent and give it to a user to test so created an HTML page on my desktop and added the chat code into the body.  That won’t run the script required by the agent though so that explains why there was no response.

So I created a basic web project in visual studio and added the chat to the default generated home page and as if by magic the chat was working.

Rookie error.

Thanks again.