ChatWoot icon

ChatWoot

Interact with ChatWoot API

Actions100

Overview

This node interacts with the ChatWoot API to retrieve a Single Sign-On (SSO) URL for a specific user. It is useful in scenarios where you need to programmatically obtain an SSO link for a user, such as automating user access flows or integrating ChatWoot authentication into other systems. For example, you might use this node to generate an SSO URL and send it to a user via email, allowing them to log in seamlessly.

Properties

Display Name Type Description
Id Number The numeric ID of the user on the platform. This is required to identify which user's SSO URL should be retrieved.

Output

The output will be a JSON object containing the SSO URL for the specified user. The structure typically includes:

{
  "sso_url": "https://your-chatwoot-instance.com/sso/..."
}
  • sso_url: The generated SSO URL that allows the user to authenticate directly.

Dependencies

  • External Service: Requires access to a ChatWoot instance with API enabled.
  • API Key: You must configure valid ChatWoot API credentials (chatwootApi) in n8n.
  • Environment Variable: The base URL for the ChatWoot instance must be set in the credentials as url.

Troubleshooting

  • Invalid User ID: If the provided user ID does not exist, the node may return an error indicating the user was not found. Ensure the ID is correct.
  • Authentication Errors: If the API key or base URL is incorrect or missing, you may receive authentication errors. Double-check your credentials configuration.
  • Network Issues: Connectivity problems between n8n and the ChatWoot server can cause timeouts or connection errors.

Links and References

Discussion