Actions41
- Companies Actions
- Search companies
- Search companies (POST)
- Enrich company
- Search companies by name
- Search companies by prompt
- Search similar companies
- Count companies
- Count companies (POST)
- Enrich company by email
- Enrich company by social
- Get email patterns
- Ask company
- Get company context
- Fetch companies analytics
- Export companies analytics
- Lists Actions
- Locations Actions
- Business data Actions
- Actions Actions
- Prompts Actions
- Utilities Actions
Overview
This node integrates with The Companies API to fetch prompt data based on various filtering criteria. It is designed to retrieve previously created or available prompts that can be used for company-related queries, enrichment, analytics, or other contextual purposes.
Common scenarios where this node is beneficial include:
- Retrieving a list of prompts filtered by search terms or specific prompt content.
- Fetching prompts tailored to particular models (e.g., small or large) or contexts such as analytics, API, companies, documentation, etc.
- Paginating through large sets of prompts using page and size parameters.
- Filtering prompts by features like ask, cleanup, enrich, product, search, or similar.
- Limiting the number of results or filtering by associated list or company IDs.
Practical example:
- A user wants to fetch all prompts related to "product" features in the "api" context, limited to 25 per page, to automate company data enrichment workflows.
Properties
| Name | Meaning |
|---|---|
| Search | Filter prompts by a search string. |
| Prompt | Filter prompts by exact prompt content. |
| Model | Select the model size to filter prompts: Small or Large. |
| Context | Filter prompts by context. Options: Analytics, Api, Companies, Company, Documentation, Enrichment, Landing, List, Similarity. |
| Feature | Filter prompts by feature. Options: Ask, Cleanup, Enrich, Product, Search, Similar. |
| Page | Page number for paginated results (default 1). |
| Size | Number of prompts per page (default 25). |
| Limit | Limit the total number of prompts returned. |
| List ID | Filter prompts associated with a specific list ID. |
| Company ID | Filter prompts associated with a specific company ID. |
Output
The node outputs an array of JSON objects representing the fetched prompts. Each item corresponds to a prompt matching the query parameters. The structure of each prompt object depends on the API response but generally includes details about the prompt content, context, feature, model, and any associated metadata.
No binary data output is produced by this node.
Dependencies
- Requires an API token credential for authenticating with The Companies API.
- Uses the official SDK from
@thecompaniesapi/sdkto interact with the API. - The node expects proper configuration of the API token credential within n8n.
Troubleshooting
- Unknown operation error: If the operation parameter is set incorrectly or not supported, the node will throw an "Unknown operation" error. Ensure the operation is set to "fetchPrompts".
- SDK method not found: If the SDK does not have the expected method, it indicates a mismatch between the node's operation and the SDK version. Verify the SDK version compatibility.
- Empty or missing parameters: Some parameters default to predefined values if left empty; however, providing invalid or unsupported values may cause unexpected results or errors.
- API authentication errors: Ensure the API token credential is valid and has sufficient permissions.
- Rate limiting or network issues: Handle these by enabling "Continue On Fail" to allow partial processing or retry logic externally.