This is an n8n community node that lets you invoke OpenMetadata DynamicAgents in your n8n workflows.
DynamicAgents are AI-powered agents in OpenMetadata that can answer questions about your data, run queries, and perform various data operations.
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-metadataand confirm
npm install n8n-nodes-metadata- A running OpenMetadata instance
- A JWT token for authentication (bot token or personal access token)
- A DynamicAgent with API access enabled
- In OpenMetadata, navigate to your DynamicAgent
- Edit the agent settings
- Enable the "API Access" toggle
- Save the agent
The node requires OpenMetadata API credentials:
| Field | Description |
|---|---|
| Server URL | Your OpenMetadata instance URL (e.g., https://openmetadata.example.com) |
| JWT Token | Authentication token (bot token recommended for production) |
| Parameter | Required | Description |
|---|---|---|
| Use Default Agent | No | Toggle on to invoke the platform's default agent (PLANNER / CHAT_MODE) without specifying a name |
| Agent Name | Conditional | Name of the DynamicAgent to invoke. Not required when Use Default Agent is enabled |
| Message | Yes | The query or message to send to the agent |
| Conversation ID | No | For multi-turn conversations, pass the conversation ID from a previous response |
| Parameters | No | Additional parameters as JSON object |
The node outputs the agent's response:
{
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"response": "The total revenue for Q4 2024 was $1.2M...",
"toolsUsed": ["SemanticLayerQuery"],
"usage": {
"inputTokens": 150,
"outputTokens": 280,
"totalTokens": 430
}
}To maintain conversation context across multiple agent calls:
- First call: Leave
Conversation IDempty - Capture
conversationIdfrom the response - Subsequent calls: Pass the captured
conversationId
- Node.js 18+
- npm or pnpm
- n8n installed globally or locally
cd n8n-nodes-metadata
npm install
npm run build-
Build the node:
npm run build
-
Set the environment variable and start n8n from THIS directory:
export N8N_CUSTOM_EXTENSIONS=$(pwd) N8N_SECURE_COOKIE=false npx n8n
-
Open n8n at http://localhost:5678
-
Search for "AI SDK Agent" in the node palette
For active development with auto-rebuild:
# Terminal 1: Watch for changes
npm run dev
# Terminal 2: Start n8n (restart after changes)
N8N_CUSTOM_EXTENSIONS="$(pwd)" n8n startNote: n8n caches nodes on startup, so you need to restart n8n after rebuilding.
- Start your local OpenMetadata instance
- Create a bot and get its JWT token
- Create a DynamicAgent and enable API access
- Configure the OpenMetadata API credentials in n8n with:
- Server URL:
http://localhost:8585(or your local URL) - JWT Token: Your bot's JWT token
- Server URL:
- Verify the agent name is correct (case-sensitive)
- Check the agent exists in your OpenMetadata instance
- Open the agent in OpenMetadata UI
- Enable the "API Access" setting
- Save the agent
- Verify your JWT token is valid and not expired
- Ensure the token has permissions to access the agent
- Try generating a new token
- Verify the Server URL is correct and accessible
- Check if there are any firewalls blocking the connection
- For local development, ensure OpenMetadata is running
Apache-2.0