Autocust - Workflow Exit icon

Autocust - Workflow Exit

Register when a contact reach the end of a workflow

Overview

This node registers an event indicating that a contact has reached the end of a workflow. It is useful in scenarios where you want to track or trigger actions based on the completion of workflows for specific contacts, such as updating CRM records, analytics tracking, or triggering follow-up processes.

For example, when a marketing automation workflow finishes for a contact, this node can send an event to an external system to log the completion or initiate further communication.

Properties

Name Meaning
Contact ID The ID of the contact involved in this event

Output

The node outputs JSON data representing the response from the external API after registering the event. Each output item corresponds to an input item and contains either:

  • The successful response data from the event registration API.
  • An error object with an error message if the request failed and the node is configured to continue on failure.

No binary data is produced by this node.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • Uses Axios HTTP client to send POST requests to the external API endpoint /events.
  • The external API expects event data including action type, event type, contact ID, workflow ID, and execution ID.

Troubleshooting

  • Common issues:

    • Invalid or missing API key will cause authentication failures.
    • Incorrect contact IDs or workflow IDs may result in errors from the external API.
    • Network connectivity problems can prevent event registration.
  • Error messages:

    • Errors returned from the external API are captured and included in the output if "continue on fail" is enabled.
    • If not continuing on fail, the node throws an error with details from the API response.
  • Resolution tips:

    • Verify the API key and base URL configuration.
    • Ensure the contact ID provided exists and is valid.
    • Check network access to the external API endpoint.

Links and References

  • Axios HTTP Client
  • Documentation for the external API (not provided in source code) would be needed for full integration details.

Discussion