Get File Info

Makes a ‘Get’ API call to the provided attachment URL to fetch the file size and content type details.

When a customer sends an attachment over Facebook Messenger, imiconnect receives an attachment URL. However, you need the file size and content type details to forward the attachment to an agent using the Send Message Node. This node allows you to make the Get API call to the attachment URL to fetch these details. The details are available in the output variables in case of ‘createAttachmentInfoOnSuccess’ node outcome.

Authorization

Refer to the Node Authorization section for more information.

Methods and Outcomes

Get File Info

617
Input VariablesOutput VariablesNode Outcomes
Attachment URL
* URL to the attachment file.
fileSize
Size of the attachment in bytes.

contentType
Attachment content type.
onInvalidData
Request processing failed due to missing data.

onError
Request processing failed due to an error.

onInvalidChoice
Request processing failed but there is no outcome configured for the concerned scenario.

onTimeout
Request timed out.

createAttachmentInfoOnSuccess
A record is created after an attachment is success

createAttachmentInfoOnFailure
A record is created after an attachment is failed

Get Attachment URL

1290
Input VariablesOutput VariablesNode Outcomes
FILE NAME
File attachment name.

Content URL
URL to the attachment file received from ECE.
fileAttachmentURL
* Attachment File URL.
onInvalidData
Request processing failed due to missing data.

onError
Request processing failed due to an error.

onInvalidChoice
Request processing failed but there is no outcome configured for the concerned scenario.

onTimeout
Request timed out.

onCreateAttachmentURLSuccess
A URL is created after an attachment is success

onCreateAttachmentURLFailure
A URL is created after an attachment is failed