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.
Import LangGraph dependencies
Initialize the LLM
Add the LLM node to the graph
Define the chatbot function and wrap it with the tracing decorator
Setup the node and edges
Define the stream_graph_updates function
Define the user_send_message function
Wrap everything in a workflow
Run the workflow
Was this page helpful?