How to return a Word/PDF document as a reponse to the user

I want to send documents as response to the user. Suppose if user ask for what is OCP then bot will provide document related to that. Can you please help me with this?

Please help me with this.

Hi,
If you want to show pdf or doc file as bot response,
Go to advance mode of your faq response prompt then use below script –

var message =
{
“type” : “link”
“payload” :
{
“url” : “here you can define your file link”
}
};
print(JSON.stringify(message));

1 Like

@smita.patil7
Sending direct documents or files as a part of bot response is not a feature yet.
As @inayatmadni has mentioned, you can send the link to the document. Multiple formats can be used.
Please refer to https://developer.kore.ai/docs/bots/sdks/message-templates/
Thanks, @inayatmadni for trying to help!

1 Like