<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-a-multi-model-ai-support-agent-5hkvwwenr" -->

---
title: Building a Multi-Model AI Support Agent | daily.dev
description: A tutorial demonstrates building a multi-model AI customer support agent that routes simple queries to GPT-5-nano and complex ones to GPT-5-pro, using Inngest...
canonical: https://daily.dev/posts/building-a-multi-model-ai-support-agent-5hkvwwenr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building a Multi-Model AI Support Agent | daily.dev
og:description: A tutorial demonstrates building a multi-model AI customer support agent that routes simple queries to GPT-5-nano and complex ones to GPT-5-pro, using Inngest...
og:url: https://daily.dev/posts/building-a-multi-model-ai-support-agent-5hkvwwenr
og:image: https://api.daily.dev/og/posts/5HkvWwENr.png
og:image:alt: Building a Multi-Model AI Support Agent
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building a Multi-Model AI Support Agent

**[Inngest Blog](https://daily.dev/sources/inngest)** · 13 min read · 0 upvotes · 0 comments

## Summary

A tutorial demonstrates building a multi-model AI customer support agent that routes simple queries to GPT-5-nano and complex ones to GPT-5-pro, using Inngest for orchestration. It covers concurrency and throttle keys to prevent cost explosions and customer monopolization, durable step execution so failed steps don't waste money re-running expensive API calls, and Inngest Realtime for streaming responses without building custom WebSocket infrastructure. Full code is shown for a Postgres schema, the fast and reasoning agent functions, Next.js API routes, and a React streaming frontend, plus extensions like human handoff via waitForEvent and feedback tracking.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/building-a-multi-model-ai-support-agent>

## Questions this post answers

### How can I prevent one customer's AI support queries from consuming all my system's resources?

Use per-customer concurrency keys so each customer gets an isolated virtual queue with its own throughput limit. For example, setting a concurrency limit of 50 keyed on customer_id means one customer sending 1,000 queries won't block another customer's 5 queries, since each customer's executions are capped independently rather than sharing one global queue.

_Developers isolating tenant workloads in AI agents can find implementation patterns like this through daily.dev._

### How do I stop AI API costs from exploding when a customer sends too many requests in a short time?

Apply throttling at the customer level, for example limiting each customer to 100 queries per hour so excess requests queue instead of processing immediately. In one scenario, a customer sending 500 queries in 10 minutes without throttling could cost $50 if 20% require an expensive reasoning model, but throttling caps that cost at roughly $10.

_Teams budgeting variable AI costs can track patterns like this on daily.dev while comparing orchestration approaches._

### How can I add real-time streaming to an AI chat app without building a WebSocket server?

Use a managed realtime publish/subscribe layer like Inngest Realtime instead of custom WebSocket infrastructure: call publish() with a channel and topic from the backend function as tokens stream in, and subscribe to that channel from the React frontend to receive chunks. This eliminates the 2-3 weeks typically spent building connection management, reconnect logic, and scaling for WebSockets.

_Frontend developers weighing streaming infrastructure options can research approaches like this via daily.dev._

## Similar posts on daily.dev

- [A Multi-Agent Support Bot with the OpenAI Agents SDK](https://daily.dev/posts/a-multi-agent-support-bot-with-the-openai-agents-sdk-l6j8d0c44) · marmelab · 4 upvotes · 2 comments
- [The architecture behind an AI tutor, four months in](https://daily.dev/posts/the-architecture-behind-an-ai-tutor-four-months-in-uqjo9alxn) · Medium · 4 upvotes · 0 comments
- [GPT 5.1 models now available in Vercel AI Gateway](https://daily.dev/posts/gpt-5-1-models-now-available-in-vercel-ai-gateway-j9wsenwjw) · Vercel · 1 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#inngest](https://daily.dev/tags/inngest), [#nextjs](https://daily.dev/tags/nextjs), [#openai](https://daily.dev/tags/openai)

[View this post on daily.dev](https://daily.dev/posts/building-a-multi-model-ai-support-agent-5hkvwwenr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building a Multi-Model AI Support Agent","url":"https://daily.dev/posts/building-a-multi-model-ai-support-agent-5hkvwwenr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-a-multi-model-ai-support-agent-5hkvwwenr"},"datePublished":"2026-09-13T19:57:48.313Z","dateModified":"2026-10-15T02:22:32.668Z","description":"A tutorial demonstrates building a multi-model AI customer support agent that routes simple queries to GPT-5-nano and complex ones to GPT-5-pro, using Inngest...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e4a133df78e0724015b7b100bc397d64?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e4a133df78e0724015b7b100bc397d64?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/building-a-multi-model-ai-support-agent-5hkvwwenr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,inngest,nextjs,openai","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"Building a Multi-Model AI Support Agent"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/building-a-multi-model-ai-support-agent-5hkvwwenr#faq","mainEntity":[{"@type":"Question","name":"How can I prevent one customer's AI support queries from consuming all my system's resources?","acceptedAnswer":{"@type":"Answer","text":"Use per-customer concurrency keys so each customer gets an isolated virtual queue with its own throughput limit. For example, setting a concurrency limit of 50 keyed on customer_id means one customer sending 1,000 queries won't block another customer's 5 queries, since each customer's executions are capped independently rather than sharing one global queue. Developers isolating tenant workloads in AI agents can find implementation patterns like this through daily.dev."}},{"@type":"Question","name":"How do I stop AI API costs from exploding when a customer sends too many requests in a short time?","acceptedAnswer":{"@type":"Answer","text":"Apply throttling at the customer level, for example limiting each customer to 100 queries per hour so excess requests queue instead of processing immediately. In one scenario, a customer sending 500 queries in 10 minutes without throttling could cost $50 if 20% require an expensive reasoning model, but throttling caps that cost at roughly $10. Teams budgeting variable AI costs can track patterns like this on daily.dev while comparing orchestration approaches."}},{"@type":"Question","name":"How can I add real-time streaming to an AI chat app without building a WebSocket server?","acceptedAnswer":{"@type":"Answer","text":"Use a managed realtime publish/subscribe layer like Inngest Realtime instead of custom WebSocket infrastructure: call publish() with a channel and topic from the backend function as tokens stream in, and subscribe to that channel from the React frontend to receive chunks. This eliminates the 2-3 weeks typically spent building connection management, reconnect logic, and scaling for WebSockets. Frontend developers weighing streaming infrastructure options can research approaches like this via daily.dev."}}]}
```

