Actions2
Overview
This node interacts with the hotcalls.ai workspace endpoints, specifically to list agents or create leads. For the 'List Agents' operation, it retrieves all agents associated with the authenticated workspace. This is useful for workflows that need to display or process agent information dynamically, such as assigning leads or managing agent data.
Use Case Examples
- A sales automation workflow that fetches all agents to assign new leads automatically.
- A reporting workflow that lists all agents to generate performance reports.
Properties
| Name | Meaning |
|---|---|
| Operation | Specifies the action to perform, either listing agents or creating a lead. |
| Agent Name or ID | Select or specify the agent to assign a new lead to (required for 'Create Lead' operation). |
| First Name | First name of the lead to be created (required for 'Create Lead' operation). |
| Last Name | Last name of the lead to be created (required for 'Create Lead' operation). |
| User Email | Email address of the lead to be created (required for 'Create Lead' operation). |
| Phone Number | Phone number of the lead to be created (required for 'Create Lead' operation). |
Output
JSON
json- Contains the list of agents or the created lead data returned from the hotcalls.ai API.
Dependencies
- Requires an API key credential for hotcalls.ai to authenticate requests.
Troubleshooting
- Ensure the API key credential is correctly configured and has the necessary permissions.
- For 'Create Lead' operation, the agent ID must be a valid UUID; otherwise, an error is thrown.
- If the node fails and 'Continue On Fail' is not enabled, the workflow will stop execution on error.
Links
- n8n Expressions Documentation - Reference for using expressions in node parameters.