CT Coach Dev icon

CT Coach Dev

Interact with HttpBin API

Message → Create a Message as AI Coach

AI-generated

Overview

This node interacts with a Coach API to create messages as an AI Coach. Specifically, the "Create a Message as AI Coach" operation allows sending a message from a coach user to a receiver user, optionally including translated content and metadata related to language model usage. This is useful in scenarios where automated coaching messages need to be generated and sent programmatically, such as in employee training platforms, virtual coaching assistants, or customer support bots that simulate coaching interactions.

Practical examples:

  • Automatically sending motivational or instructional messages from an AI coach to users based on their progress.
  • Sending translated coaching messages to users in different languages.
  • Tracking token usage and conversation threads for AI-generated coaching messages.

Properties

Name Meaning
Authentication Choose between two authentication methods: "Company Api" or "System Api".
Coach User ID The user ID of the coach sending the message (required).
Receiver User ID The user ID of the message recipient (required).
Message The main message content to send.
Message Translated Optional translated version of the message content.
LLM Model The name or identifier of the large language model used to generate the message.
Token In Token count input for the message generation (sensitive/password field).
Token Out Token count output for the message generation (sensitive/password field).
Run ID An optional identifier for the run or session associated with this message.
Thread ID An optional identifier for the conversation thread this message belongs to.

Output

The node outputs JSON data representing the response from the Coach API after creating the message as an AI coach. The exact structure depends on the API response but typically includes details about the created message, status, and any metadata returned by the service.

No binary data output is involved.

Dependencies

  • Requires access to the Coach API endpoint at https://coachtriggerapp.com/crmApi/message/from_aicoach.
  • Requires an API key credential for authentication, either via "Company Api" or "System Api" method.
  • Proper configuration of credentials in n8n is necessary to authenticate requests.

Troubleshooting

  • Authentication errors: Ensure the correct API key credential is selected and properly configured. Using the wrong authentication option or invalid keys will cause request failures.
  • Missing required fields: The "Coach User ID" and "Receiver User ID" are mandatory; omitting them will likely result in errors from the API.
  • API response parsing errors: If the API returns unexpected data or non-JSON responses, the node may fail to parse the response. Verify API availability and correctness of parameters.
  • Network issues: Connectivity problems to the Coach API endpoint will cause request failures. Check network settings and endpoint accessibility.

Links and References

Discussion