Skip to Content

SAP CAI how to handle images in chat?

My bot is connected with Telegram and I like to retrive the images sent to the bot by the chat. I tried with the "source" field but the bot doesn't recognize sending an image as a message (I don't see it in the "Monitor" section) so I can't use it.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on Jun 04, 2019 at 11:36 AM

    Hi, if you want to retrieve the image as our bot connector does not support images you need to use the redirect URL of the bot connector within the settings of your bot to retrieve the payload of the channel and parse it and use it. Then you need to manually make a POST onto our API /dialog to use the builder.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Pierre-Edouard LIEB,

      If we point the Bot Connector to a custom backend, and this custom backend posts to the Bot Builder.

      How should we carry the reply?

      Does the Bot Builder replies to the Bot Connector ? Or does the Bot Builder replies to the custom backend and this one replies to the Bot Connector?

      Thanks !

      Martin

  • Posted on May 31, 2019 at 01:13 PM

    Jacopo,

    a question: did you check the SAP CAI API reference docs?

    https://cai.tools.sap/docs/api-reference/

    Check this link and inform if it help you or you still with doubt.

    Thank you, Fausto Motter

    Add comment
    10|10000 characters needed characters exceeded