Neo4j is a powerful graph database that excels at managing highly connected data
and complex relationships. This guide will walk you through connecting your
Hypermode agent to Neo4j.
This guide will walk you through the steps of connecting to Neo4j using the
free Neo4j Sandbox, but you can also use Neo4j Aura or a self-hosted instance.
Once your Neo4j sandbox instance is created (it may take a moment), you can
navigate to the âConnection detailsâ tab to view the connection credentials for
your Neo4j sandbox instance.Note the username, password, and Bolt URL - youâll use these in the next step to
create a Neo4j connection in Hypermode Agents.
Once created, navigate to your agentâs details page. Here you can view and edit
the agent instructions that were created from your initial agent description
preceding the agent creation process.You can update the agent instructions at any time to help align the agentâs
background and skills with your use case.
Start a new thread with your agent and create some nodes dynamically:
Copy
Ask AI
Create nodes for this scenario:- A Person named "Alice" who is 28 years old- A Company named "TechCorp" founded in 2020- A Product named "GraphApp" with a price of $99
Hereâs how to leverage Neo4jâs schemaless nature to build a flexible knowledge
graph:
Copy
Ask AI
Let's expand our graph with more data:1. Add another Person "Bob" who also works at TechCorp2. Add a new Company "StartupInc"3. Add Products "DataTool" and "AIAssistant"4. Create relationships showing Bob made DataTool, and StartupInc made AIAssistant5. Add a COMPETES_WITH relationship between the two companies