Overview
This node, named "FastGPT," allows users to query the FastGPT service by Kagi to get answers to specific questions. It is designed to send a query string to the FastGPT API and retrieve an answer generated based on that query. This node is useful in scenarios where you want to integrate AI-powered question answering or web search capabilities into your workflow, such as automating customer support responses, generating quick insights from data, or enhancing chatbots with factual answers.
For example, you could use this node to ask "When was n8n launched?" and receive a concise answer sourced from Kagi's web search capabilities.
Properties
Name | Meaning |
---|---|
Query | The question or query string to send to FastGPT for getting an answer. Example: "When was n8n launched?" |
Output
The node outputs JSON data containing the answer retrieved from the FastGPT API. The exact structure of the output JSON is not detailed in the source code, but it typically includes the answer text corresponding to the input query.
No binary data output is indicated or supported by this node.
Dependencies
- Requires an active API key credential for authenticating with the Kagi FastGPT API.
- The node sends POST requests to
https://kagi.com/api/v0/fastgpt
. - The request content type is JSON (
application/json
).
Troubleshooting
Common issues:
- Missing or invalid API key credential will cause authentication failures.
- Network connectivity problems may prevent reaching the FastGPT API endpoint.
- Invalid or empty query strings might result in errors or empty responses.
Error messages:
- Authentication errors typically indicate missing or incorrect API credentials; ensure the API key is correctly configured.
- HTTP errors (e.g., 4xx or 5xx) suggest issues with the request or server; verify the query format and try again later.
- Timeout or network errors require checking internet connection and firewall settings.
Links and References
- Kagi FastGPT API Documentation (for more details on API usage and response formats)