Overview
This node acts as a webhook trigger for new chat messages from the CT Coach Dev Trigger API. It listens for incoming HTTP POST requests at a specified webhook URL and triggers the workflow when a new chat message is received. This is useful for automating workflows based on real-time chat message events, such as logging messages, sending notifications, or processing chat data automatically.
Use Case Examples
- Trigger a workflow whenever a new chat message is received from the CT Coach Dev system.
- Automate customer support processes by reacting to incoming chat messages in real-time.
Output
JSON
body- The JSON payload of the incoming chat message received from the webhook
Dependencies
- Requires an API key credential for authentication with the CT Coach Dev Trigger API.
Troubleshooting
- Ensure the API key credential is correctly configured and matches the trigger key sent in the webhook headers; otherwise, the node will throw an 'Invalid trigger key' error.
- If webhook registration or unregistration fails, verify network connectivity and that the API key is valid and has the necessary permissions.
- Common error messages include 'No credentials found' if the API key is missing, and 'Webhook registration/unregistration failed' if the remote API does not accept the webhook URL.
Links
- CT Coach Dev Trigger API Webhook Endpoint - The API endpoint used for registering and receiving webhook events for new chat messages.