Actions18
- Contact Actions
- Message Actions
- Conversation Actions
- Note Actions
- File Actions
Overview
This node integrates with the Superchat API to perform various operations on different resources. Specifically, for the File resource with the Create A File operation, it uploads a binary file to Superchat. This is useful when you want to programmatically add files (such as images, documents, or other media) into your Superchat workspace or conversations.
Practical examples include:
- Automatically uploading user-submitted files from a web form.
- Archiving files from other systems into Superchat.
- Attaching files to messages or contacts within automated workflows.
Properties
| Name | Meaning |
|---|---|
| Input Data Field Name | The name of the input field that contains the binary file data to be uploaded. Default is "data". |
Output
The node outputs a JSON array where each element corresponds to the result of uploading one file. The structure of each JSON object depends on the response from the Superchat API's file creation endpoint but generally includes metadata about the uploaded file such as its ID, name, URL, and other relevant attributes.
If the input binary data is provided, the node processes it and returns the created file's details in JSON format. There is no explicit mention of outputting binary data from this node.
Dependencies
- Requires an API key credential for authenticating with the Superchat API.
- The node depends on the Superchat API being accessible and properly configured.
- No additional environment variables are explicitly required beyond the API authentication.
Troubleshooting
Common issues:
- Missing or incorrect binary property name: Ensure the input binary data field name matches the actual input data.
- Authentication failures: Verify that the API key credential is valid and has sufficient permissions.
- Network or API errors: Check connectivity and Superchat API status.
Error messages:
- Errors related to missing binary data typically indicate that the specified input field does not exist or is empty.
- Authentication errors suggest invalid or expired credentials.
- API rate limits or server errors will be returned by the Superchat API and should be handled accordingly.