Prerequisites
Before you begin, ensure you have the following:- A GitHub account
- A LangSmith account (free to sign up)
1. Create a repository on GitHub
To deploy an application to LangGraph Platform, your application code must reside in a GitHub repository. Both public and private repositories are supported. For this quickstart, use thenew-langgraph-project
template for your application:
- Go to the
new-langgraph-project
repository ornew-langgraphjs-project
template. - Click the
Fork
button in the top right corner to fork the repository to your GitHub account. - Click Create fork.
2. Deploy to LangGraph Platform
- Log in to LangSmith.
- In the left sidebar, select Deployments.
- Click the + New Deployment button. A pane will open where you can fill in the required fields.
- If you are a first time user or adding a private repository that has not been previously connected, click the Import from GitHub button and follow the instructions to connect your GitHub account.
- Select your New LangGraph Project repository.
- Click Submit to deploy. This may take about 15 minutes to complete. You can check the status in the Deployment details view.
3. Test your application in LangGraph Studio
Once your application is deployed:- Select the deployment you just created to view more details.
- Click the LangGraph Studio button in the top right corner. LangGraph Studio will open to display your graph.
4. Get the API URL for your deployment
- In the Deployment details view in LangGraph, click the API URL to copy it to your clipboard.
- Click the
URL
to copy it to the clipboard.
5. Test the API
You can now test the API:- Install the LangGraph Python SDK:
- Send a message to the assistant (threadless run):