Actions2
Overview
This node integrates with the Critique AI API to perform AI-powered search queries or retrieve processed content from webpages. The "Search" operation allows users to send a textual prompt, optionally accompanied by an image, to receive relevant search results enhanced by AI analysis. This is useful for scenarios such as research, content discovery, or gathering insights from multiple sources filtered by domain preferences.
For example, a user might input a question or topic as the prompt and receive curated search results excluding certain domains or focusing only on trusted sources. Including an image can help refine the search context. The node also supports specifying a structured output format in JSON to tailor the response.
Properties
| Name | Meaning |
|---|---|
| Prompt | The search query text sent to Critique AI. |
| Image | Optional base64 encoded image or image URL to include with the search, providing additional context. |
| Source Blacklist | Comma-separated list of domain names to exclude from search results (e.g., "domain1.com,domain2.com"). |
| Source Whitelist | Comma-separated list of domain names to restrict search results to only these domains. |
| Output Format (JSON) | Optional JSON object defining a structured output format specification for the search results. |
Output
The node outputs a JSON object containing the response from the Critique AI API for each input item. For the "Search" operation, this typically includes the AI-processed search results based on the prompt and optional filters.
The output structure directly reflects the API's JSON response, which may contain fields such as search hits, summaries, metadata, or other AI-generated content depending on the request parameters.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating requests to the Critique AI service.
- Makes HTTP POST requests to the Critique AI endpoints:
https://api.critique-labs.ai/v1/searchfor search operations.https://api.critique-labs.ai/v1/contentsfor content retrieval operations.
- The node expects the API key to be configured securely within n8n credentials.
Troubleshooting
- Invalid JSON in Output Format: If the "Output Format (JSON)" property contains malformed JSON, the node will throw an error indicating invalid JSON. Ensure the JSON syntax is correct before running the node.
- API Authentication Errors: Missing or incorrect API key credentials will cause authentication failures. Verify that the API key is correctly set up in n8n credentials.
- Network or API Errors: Connectivity issues or API downtime may result in HTTP request failures. Check network connectivity and the status of the Critique AI service.
- Empty or Unexpected Results: If the search returns no results or unexpected data, review the prompt, image input, and domain filters to ensure they are valid and appropriate.
Links and References
- Critique AI Official Website (for general information)
- Critique AI API Documentation (for detailed API usage and parameters) (Note: link assumed based on typical naming; verify actual documentation URL)