@ghntech/n8n-nodes-gtalk
v0.2.6
Published
This is a community node for n8n to interact with the GHN GTalk API. It allows you to automate tasks related to GTalk, such as sending messages.
Maintainers
Readme
GHN GTalk n8n Node
This is a community node for n8n to interact with the GHN GTalk API. It allows you to automate tasks related to GTalk, such as sending messages.
Features
This node supports the following resources and operations:
Message
- Send: Send a text message to a channel
- Send Template: Send a template message with structured content (icons, titles, actions)
- Send Photo: Send a photo message (supports URL, File ID, or binary data)
- Send Video: Send a video message (supports URL, File ID, or binary data)
- Send File: Send a file message (supports URL, File ID, or binary data)
Installation
To install this n8n community node, you can use the following command in your n8n root directory:
npm install @ghntech/n8n-nodes-gtalkAlternatively, you can install it directly from within n8n:
- Go to Settings > Community Nodes.
- Click Install a custom node.
- Enter
@ghntech/n8n-nodes-gtalkin the npm package name field. - Click Install.
Credentials
This node requires GhntechGtalkApi credentials. To set them up:
- In n8n, click on Credentials in the left sidebar.
- Click New Credential.
- Search for
GHN GTalk APIand select it. - Provide the Username and Password for basic authentication. The
OA Tokenwill be automatically generated from these credentials.
Usage Examples
Send a Text Message
To send a simple text message:
- Add the GHN GTalk node to your workflow.
- Select Message as the Resource.
- Select Send as the Operation.
- Provide the Channel ID and Content Text.
- Execute the node to send the message.
Send a Template Message
To send a template message with structured content:
- Add the GHN GTalk node to your workflow.
- Select Message as the Resource.
- Select Send Template as the Operation.
- Provide:
- Channel ID: The target channel
- Template ID: Your template identifier
- Short Message: A brief message summary
- Template Data: Structured data including:
icon_url: URL to an icon imagetitle: Template titlecontent: Main content textactions: Array of action buttons with text, style, type, and URL
- Execute the node to send the template message.
Send a Photo
To send a photo message:
- Add the GHN GTalk node to your workflow.
- Select Message as the Resource.
- Select Send Photo as the Operation.
- Choose your Photo Source:
- URL or File ID: Provide a direct image URL or a numeric File ID from a previous upload
- Binary Field: Select a binary property from previous workflow steps
- Optionally add a Caption for the photo.
- Execute the node to send the photo.
Note: Photos are automatically processed to generate thumbnails. Maximum file size is 100MB.
Send a Video
To send a video message:
- Add the GHN GTalk node to your workflow.
- Select Message as the Resource.
- Select Send Video as the Operation.
- Choose your Video Source:
- URL or File ID: Provide a direct video URL or a numeric File ID from a previous upload
- Binary Field: Select a binary property from previous workflow steps
- Optionally add a Caption for the video.
- Execute the node to send the video.
Note: Videos are automatically processed to extract metadata (width, height, duration) and generate thumbnails. Maximum file size is 100MB. Requires ffmpeg and ffprobe to be installed on your system.
Send a File
To send a file message:
- Add the GHN GTalk node to your workflow.
- Select Message as the Resource.
- Select Send File as the Operation.
- Choose your File Source:
- URL or File ID: Provide a direct file URL or a numeric File ID from a previous upload
- Binary Field: Select a binary property from previous workflow steps
- Execute the node to send the file.
Note: File types are automatically detected. Maximum file size is 100MB.
Technical Notes
- File Size Limit: All file uploads (photos, videos, files) have a maximum size of 100MB.
- File ID Reuse: If you have a File ID from a previous upload, you can reuse it without re-uploading the file.
- Binary Data Support: All media operations support binary data from previous workflow steps, making it easy to chain operations.
- Automatic Processing:
- Photos: Thumbnails are automatically generated (600x600px, fit inside)
- Videos: Metadata (dimensions, duration) is extracted and thumbnails are generated
- Files: MIME types are automatically detected
- Video Requirements: Sending videos requires
ffmpegandffprobeto be installed on your system for metadata extraction and thumbnail generation.
Development
If you are developing this node, here are some useful commands:
n8n-node build: Compiles the TypeScript code to JavaScript.n8n-node build:watch: Compiles the TypeScript code and watches for changes.n8n-node dev: Starts n8n in development mode with the node loaded.n8n-node lint: Lints the code.n8n-node lint:fix: Lints the code and fixes fixable issues.n8n-node release: Prepares a new release of the node.n8n-node prepublishOnly: Runs before publishing the package.
