Can Kore.AI return a Word/PDF document as a reponse Can you please help us?

HI I am trying to return a Word/PDF document as a bot response Can you guys please help me If it is possible?

Is the document URL publicly available? If the document URL is publicly available and if you would need to show the image of the document along with link to access the document, please use service node of “URL to image” and configure the message node to present the image and URL in it.

Please check if the below configuration could help. (I am using the URL of a google doc which can be publicly accessed)

image

image

image

image

image

image

@Subrahmanyam HI I am facing issue while setting the context variables I didnt understand where actually we need to set the variables Could you please show me the path for it and i didnt even get from where we got the urls for mobile as well as for desktop could you help me in that.

Thanks in advance

@siripurapurahul The details on creating and retrieving context variables can be found at the below links:

https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/using-session-and-context-variables-in-tasks/

https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/context-object/

Regarding the URL which the platform generates when the service node of type “URL to image” is executed, the URL should be available at the below path context.serviceNode.response.body.imageURLS

@Subrahmanyam Hi The Document is returned as an image , Is it possible to get the entire document instead because I want to open the whole document once it sends Can you please help me?

Thanks in advance
Rahul Siripurapu.

@Subrahmanyam Is there any possiblity that bot returns entire document instead of its image because we have a requirement of opening the word document once the bot returns the document , I am successful in returning the document as an image .

Could you please help me in that.

Thanks and Regards
Rahul Siripurapu.