CustomJE icon

CustomJE

Custom operations

Overview

The node provides an interface to interact with various CustomJE API operations, including one for the ChatGPT resource called Create Thread ID. This specific operation allows users to create a new conversation thread ID by sending their API key to the CustomJE service. It is useful in scenarios where you want to start a new chat session or thread programmatically before sending messages or performing other chat-related actions.

Practical examples include:

  • Initializing a new chat thread in an automated chatbot workflow.
  • Generating unique thread IDs for organizing conversations in customer support systems.
  • Preparing a fresh context for AI-driven chat interactions.

Properties

Name Meaning
CJ Token Your CJ Token (API key) required to authenticate and authorize the request to create a new thread ID.

Output

The output is a JSON object returned from the CustomJE API endpoint https://api.customje.com/create-thread-id.php. This JSON typically contains the newly created thread ID and possibly additional metadata about the thread creation status.

Example structure (illustrative):

{
  "thread_id": "string",
  "status": "success",
  "message": "Thread created successfully"
}

No binary data output is involved in this operation.

Dependencies

  • Requires an active internet connection to call the CustomJE API endpoints.
  • Needs a valid CJ Token (API key) credential configured in the node input.
  • The node uses HTTP POST requests to communicate with the CustomJE API.
  • No additional environment variables or n8n-specific configurations are explicitly required beyond providing the API key.

Troubleshooting

  • Common issues:

    • Invalid or missing CJ Token will cause authentication failures.
    • Network connectivity problems can prevent reaching the CustomJE API.
    • Unexpected API response formats may cause errors in parsing the output.
  • Error messages:

    • "The operation "create-thread-id" is not implemented yet!" — This would indicate a misconfiguration or unsupported operation; ensure the correct operation name is selected.
    • "The resource "chatgpt" is not known!" — Indicates the resource parameter is incorrect or unsupported.
    • API errors returned from the CustomJE service usually contain descriptive messages; verify your token and request parameters.
  • Resolutions:

    • Double-check the CJ Token value for correctness.
    • Ensure the node’s resource is set to "ChatGPT" and operation to "Create Thread ID".
    • Verify network access and API availability.
    • Enable "Continue On Fail" if you want the workflow to proceed despite individual item errors.

Links and References

Discussion