Integrations
LangGraph
Learn how to integrate KeywordsAI tracing with Vercel AI SDK to monitor and analyze your AI application performance. Step-by-step guide for setting up environment variables and creating traced workflows.
We integrated LangGraph into Keywords AI so that you can use it with our tracing feature. In this guide, you will know how to run your graph and our tracer will automatically keep track of everything that happens in chronological order in this graph run.
1
Import LangGraph dependencies
Python
2
Initialize the LLM
Python
3
Add the LLM node to the graph
Python
4
Define the chatbot function and wrap it with the tracing decorator
Python
5
Setup the node and edges
Python
6
Define the stream_graph_updates function
Python
7
Define the user_send_message function
Python
8
Wrap everything in a workflow
Python
9
Run the workflow
Python