Step 1: Checkout the repo
Checkout the starting branch
We'll be working with the CopilotKit repository, specifically using a branch called coagents-travel-tutorial-start. This branch contains the starting code for our travel app tutorial.
git clone -b coagents-travel-tutorial-start https://github.com/CopilotKit/CopilotKit.git
cd CopilotKitThe tutorial code is located in the examples/coagents-travel directory, which contains:
ui/: A NextJS application where we'll integrate our LangGraph agentagent/: A Python-based LangGraph agent that we'll be enhancing
Go ahead and navigate to the example directory:
cd examples/coagents-travelInstall dependencies
First, let's set up the NextJS application. Navigate to the ui directory and install the dependencies:
cd ui
pnpm installStart the project
Launch the development server:
pnpm run devVisit http://localhost:3000 to see the travel app in action. Take some time to explore the interface and familiarize yourself with its features.
Next, let's understand the LangGraph agent and how it works.
