BOT FORUM

How do I get the chatbot to reply with an image?

How do I get the chatbot to reply with an image? Dialogflow has an Image template but it’s not working for me.

To reply with an image, choose to respond with a ‘Custom Payload’ in your Dialogflow Agent’s ‘Intent’:

df_example_response_payload



Then copy & paste the following code snippet:

{
  "platform": "mindkit",
  "version": "1.0.0",
  "message": {
    "image": [
      {
        "title": "REPLACE WITH AN IMAGE TITLE",
        "url": "REPLACE WITH AN IMAGE URL"
      }
    ]
  }
}



Be sure to replace REPLACE WITH AN IMAGE URL with the actual URL of your image location.

1 Like

That worked! Thanks for the solution

1 Like