CoachTrigger Live icon

CoachTrigger Live

Interact with coach trigger action liveelopment server API

Overview

This node interacts with the CoachTrigger API to retrieve or update various user-related data, focusing on activities, KPIs (Key Performance Indicators), messages, and reports. Specifically, for the Activity resource and the Get User KPIs List operation, it fetches a list of KPIs associated with a specified user.

Common scenarios where this node is beneficial include:

  • Monitoring user performance metrics by retrieving their KPI lists.
  • Integrating KPI data into workflows for reporting or triggering actions based on KPI values.
  • Automating data retrieval from the CoachTrigger platform to keep external systems synchronized.

Practical example:

  • A manager wants to automatically pull the latest KPIs for a user every morning to generate a performance report. This node can be configured to get the user's KPI list and feed that data into further processing steps.

Properties

Name Meaning
Authentication Method of authentication to use: "Company Api" (using an API key credential) or "System Api" (using a system key credential).
User ID The unique identifier of the user whose KPI list is to be retrieved.

Output

The node outputs an array of JSON objects under the json field. For the Get User KPIs List operation, the output JSON contains the KPI data returned by the CoachTrigger API for the specified user. The exact structure depends on the API response but typically includes KPI identifiers, names, current values, and possibly related metadata.

No binary data output is produced by this operation.

Example output snippet (conceptual):

{
  "kpis": [
    {
      "kpiId": "123",
      "name": "Sales Target",
      "value": 75,
      "unit": "%"
    },
    {
      "kpiId": "456",
      "name": "Customer Satisfaction",
      "value": 4.5,
      "unit": "stars"
    }
  ]
}

Dependencies

  • Requires access to the CoachTrigger API.
  • Needs either a "Company Api" key or a "System Api" key credential configured in n8n for authentication.
  • Network connectivity to https://www.coachtriggerapp.com/crmApi/user/activities endpoint.

Troubleshooting

  • Authentication errors: Ensure the correct API key or system key is provided and valid. Invalid or missing credentials will cause authorization failures.
  • Missing required parameters: The User ID property is mandatory. Omitting it will result in errors or empty responses.
  • API response parsing errors: If the API returns malformed JSON or unexpected data, the node may fail to parse the response. Verify the API status and data integrity.
  • Network issues: Connectivity problems to the CoachTrigger API endpoint will cause request failures. Check firewall settings and internet connection.

Links and References

Discussion