Below is the recommended setup for running and inspecting the competitive analysis deep agent example
To visualize and interact with the competitive analysis agent, we will be using the deep-agents-ui repo.
- In a seperate directory/terminal, clone the repo
git clone https://github.com/langchain-ai/deep-agents-ui.git
cd deep-agents-ui- Create a
.env.localfile with the following environment variables
NEXT_PUBLIC_DEPLOYMENT_URL="http://127.0.0.1:2024"
NEXT_PUBLIC_AGENT_ID=competitive_analysis_agent- Install dependencies and launch the server
npm install
npm run devOpen the interface on http://localhost:3000
To run the agent, we will be using the LangGraph Platform
- Clone this repo, navigate to the example, and install the requirements
git clone https://github.com/ALucek/deep-agents-walkthrough.git
cd deep-agents-walkthrough/competitive_analysis_agent
uv sync- Create a
.envfile with the following environment variables
TAVILY_API_KEY=<your_api_key_here>
OPENAI_API_KEY=<your_api_key_here>
LANGSMITH_API_KEY=<your_api_key_here>
LANGSMITH_TRACING=true
LANGSMITH_ENDPOINT=https://api.smith.langchain.com
LANGSMITH_PROJECT=deep_competitive_analysis- Launch a local LangGraph platform server
uv run langgraph devThe competitive analysis agent will now be running on the local LangGraph server, and connected to the deep-agents-ui frontend.
Note: There is no persistent file storage system included. All data, conversations, and files are cleared when the frontend is closed.