Infomaniak icon

Infomaniak

Interact with Infomaniak services

Actions6

Overview

This node integrates with Infomaniak services, specifically supporting the "Kchat" service in the provided code. The main functionality for the "Channel" resource and "Create Post" operation is to publish a message post to a specified chat channel within the Kchat service. Users can optionally attach a file from binary data to the post.

Typical use cases include automating communication workflows by posting messages to team channels, sending alerts or notifications, or sharing files programmatically within an organization using Infomaniak's chat platform.

Example: Automatically post a daily summary report as a message with an attached PDF file to a specific Kchat channel.

Properties

Name Meaning
Service The Infomaniak service to use. Currently only "Kchat" is supported.
Channel Name or ID Select the target channel from a list of available channels or specify its ID via expression.
Message The textual content of the post to be published in the selected channel.
Add File Boolean flag indicating whether to attach a file to the post.
Binary Property The name of the binary property containing the file data to attach if "Add File" is true (default: "data").

Output

The node outputs an array of JSON objects representing the result(s) of the executed operation(s). Each output item contains the response data from the Infomaniak service after creating the post. If a file was attached, the output confirms the successful inclusion of the file in the post.

No binary data is output by this node; it only consumes binary data as input when attaching files.

Dependencies

  • Requires an API key credential for authenticating with Infomaniak services.
  • The node depends on the Infomaniak Kchat API to retrieve channels and create posts.
  • Proper configuration of the API credential in n8n is necessary.
  • The node uses internal service classes to interact with the Kchat API.

Troubleshooting

  • Error retrieving channels: This error occurs if the node cannot fetch the list of channels, possibly due to invalid credentials or network issues. Verify the API key and connectivity.
  • Service not supported: If a service other than "Kchat" is selected or configured, the node will throw an error. Only "Kchat" is currently implemented.
  • Invalid channel ID: Specifying a non-existent or incorrect channel ID will cause the post creation to fail. Use the channel selector or verify the ID.
  • File attachment issues: If "Add File" is enabled but the specified binary property does not exist or is empty, the post may fail or be sent without the file. Ensure the binary data is correctly passed into the node.

Links and References

Discussion