I wanna learn building multi AI agents with typescript and nextjs.
What are the best frameworks for this? Any code examples using ts or js with the implementation of db for chat history would be really helpful
Thanks!
This is so subjective and I’m not sure your goal here. I feel this could be done with an n8n workflow or something, but to each their own. I would literally just take this question and drop it into ChatGPT. You can direct it, and it will provide specific information to your use case.
Then you can step through planning out the details of what you want to build. It’s what I do sometimes and it’s helpful to maybe use an agent that can search the web and give back relevant resources.
This is what I got back with a bunch of technical details after:
To build multi-AI agent systems using TypeScript and Next.js, you’ll need frameworks and tools for backend APIs, database integration, and AI agent orchestration. Here are some recommendations and an example to get you started:
Best Frameworks and Tools
- Next.js: Provides a powerful React-based framework for building server-side rendering (SSR) and static websites. Ideal for integrating APIs and frontend logic.
- LangChain.js: Excellent for orchestrating multiple AI agents and LLMs. Supports agent chaining, retrieval-augmented generation (RAG), and tool usage.
- Prisma: Modern ORM for managing databases like PostgreSQL, MySQL, or SQLite. It simplifies schema design and database access in TypeScript projects.
- Pinecone or Weaviate: For vector database capabilities if your agents require semantic search or embedding-based lookups.
- Supabase or Firebase: Great options for real-time database needs with additional auth and storage capabilities.
…
Hope that helps.
I’m actually inclined on the coding part. I went through a couple of tutorials that used n8n. They actually confused me a lot, as most of them were “no code.” They just put some workflow for chat history and embeddings. I wanted to know if there’s any framework that provides abstraction for this.
Thanks for the reply!! I’ll try building with this stack
Actually, I haven’t used it yet but @technolog suggested Windmill, which is like n8n but more extensible. Honestly, just watch the 20-minute video, it’s awesome. And the cool thing is that each node is code so I imagine you could make a tool to compile everything into pure code (for production and use the flow for visualization/dev; this also means that you could just run dev copies locally, no need to host though there could be benefits to that like sharing workflows and user testing, etc.).
I think this is the direction I am going with my current project. But I’m also testing out and trying a few other things; I’m really only in the planning and prototype phase.
Woah this is very helpful. Thanks!!