Actions22
- Broadcasts Actions
- Embeddings Actions
- Contacts Actions
- Conversations Actions
- Tags Actions
Overview
This node operation allows users to create questions and answers that feed into a knowledge base source within an embeddings resource. It is useful for scenarios where you want to enrich or update a knowledge base by programmatically adding new Q&A pairs, which can then be used for search, retrieval, or AI-powered question answering systems.
Practical examples include:
- Automatically generating FAQ entries from user input or external data.
- Feeding customer support knowledge bases with relevant Q&A pairs.
- Enhancing chatbot knowledge sources by adding curated questions and answers.
Properties
| Name | Meaning |
|---|---|
| Source Id | The identifier of the knowledge base source where the questions and answers will be added. |
| Questions | A JSON object containing the questions and answers to be created and fed into the knowledge base. |
Output
The node outputs JSON data representing the result of the creation operation. This typically includes confirmation of the questions and answers being successfully added to the specified knowledge base source. The exact structure depends on the API response but generally contains status information and possibly identifiers of the created entries.
No binary data output is indicated.
Dependencies
- Requires an API key credential for authenticating requests to the Cogfy Messenger API.
- The node uses the Cogfy Messenger API endpoint configured via credentials, including a base URL.
- The
questionsproperty expects valid JSON input, which is parsed and sent in the request body.
Troubleshooting
- Invalid JSON in Questions: If the
questionsinput is not valid JSON, the node will fail to parse it. Ensure the JSON is correctly formatted. - Missing or Incorrect Source Id: Providing an invalid or empty source ID will cause the API call to fail. Verify the source ID exists and is correct.
- Authentication Errors: If the API key credential is missing or invalid, authentication errors will occur. Check that the API key is properly set up in n8n credentials.
- API Endpoint Issues: Network or configuration issues with the base URL may cause connection failures. Confirm the base URL is reachable and correct.
Links and References
- Cogfy Messenger API Documentation (hypothetical link)
- n8n Documentation on Creating Custom Nodes