Actions7
- AI Advice From Graph Actions
- Knowledge Graph Actions
Overview
This node integrates with the InfraNodus API to create knowledge graphs from text input. Specifically, the "Create a Graph From Text" operation allows users to generate a graph representation of textual data, which can be used for visualizing relationships between concepts, identifying key topics, and discovering content gaps.
Common scenarios where this node is beneficial include:
- Analyzing large bodies of text (e.g., articles, reports, transcripts) to extract meaningful connections.
- Enhancing research workflows by visualizing topic clusters and their interrelations.
- Supporting content strategy by identifying gaps and opportunities in existing knowledge bases.
- Enabling retrieval-augmented generation (RAG) by providing graph summaries and structured insights.
Practical example:
- Inputting a set of meeting notes as text to generate a knowledge graph that highlights main discussion points and their connections.
- Creating a graph from a collection of customer feedback to identify common themes and areas needing improvement.
Properties
| Name | Meaning |
|---|---|
| Graph Name | The name of the graph. Can be any string if not saving the graph to InfraNodus. |
| Text | The raw text content from which the knowledge graph will be created. |
| Include Statements in Response | Whether to include individual statements extracted from the graph in the response. Options: No, Yes. |
| Save / Update the Graph in InfraNodus | Whether to save or update the graph with the given name in InfraNodus. Options: No (true), Yes (false). |
| AI Topics | (Hidden) Whether to generate AI-generated topic names for graph clusters. Defaults to true. |
| Add Graph Stats | (Hidden) Whether to add graph statistics to the response. Defaults to true. |
| Include Graph Summary | Whether to include a plain text summary of the graph for RAG enhancement. Options: No, Yes. |
| Include Topics and Gaps Information | Whether to include detailed information about content gaps and keywords in the graph summary. Options: Yes, No. |
| Include Full JSON Graph | Whether to include the full JSON representation of the graph in the response. Options: Yes, No. |
Output
The node outputs a JSON object containing the generated knowledge graph data. Depending on the selected options, the output may include:
- The graph structure in JSON format representing nodes and edges derived from the input text.
- A plain text summary of the graph highlighting key topics and insights.
- Statements extracted from the graph if requested.
- Statistical data about the graph such as node counts, cluster information, and other metrics.
- Information about content gaps and keywords to help identify missing or underrepresented topics.
If binary data were involved (not indicated here), it would typically represent files or images related to the graph visualization, but this node focuses on JSON data.
Dependencies
- Requires an API key credential for authenticating with the InfraNodus API.
- The node sends requests to
https://infranodus.com/api/v1. - Proper configuration of the API key credential within n8n is necessary for successful operation.
Troubleshooting
Common issues:
- Missing or invalid API key leading to authentication errors.
- Providing empty or malformed text input causing the API to reject the request.
- Network connectivity problems preventing access to the InfraNodus API endpoint.
- Misconfiguration of boolean options (e.g., passing strings instead of expected values).
Error messages and resolutions:
- 401 Unauthorized: Check that the API key credential is correctly configured and valid.
- 400 Bad Request: Verify that required properties like "Graph Name" and "Text" are provided and properly formatted.
- Timeouts or network errors: Ensure stable internet connection and that the InfraNodus service is reachable.
- Unexpected responses: Confirm that option values conform to expected types and allowed values.
Links and References
- InfraNodus Official Website
- InfraNodus API Documentation (for detailed API usage and parameters)
- Knowledge Graphs Overview
- Retrieval-Augmented Generation (RAG)