When a user uploads an attachment in a conversation, we observed that:
- The webhook payload contains an html string with the file URL somehwere inside it:
"body": "<div class=\"intercom-container\"><img src=\"https://downloads.intercomcdn.com/i/o/112xxxxx53/131xxxx01249e994131/image.png?expires=1722233700&signature=8a70c55c0ed3000c00ae533xxxxxxxxebc3407b10136029aff26bd5f3c3\"></div>"
- In custom actions using `Last Message Body` we get
-
"payload": ""Image \"some-file.png?expires=1722255300&signature=f0e6d92d99861c0046910ace7821c80c06850fad91498faxxxxxxxxxxxxxx\"]",
We ask:
- How to get the file url as plaintext, not html, in webhook
- how to get complete file url in custom actions
- When user uploads multiple files we get multiple webhook events - and not a single one with all the files inside of it. It means we have to somehow wait and aggregate webhooks, but we wouldn’t know when to stop. Is there a way to receive multiple files on a webhook?
- We couldn’t get multiple files as the payload in the custom actions. is it possible?
- Is there a way to download a file / get a file url via API? (generating a URL that is valid, if we want to access this file programmatically after 30 minutes).
Thanks