---
title: "Classify incoming requests with an agent called from your system"
description: "Modelyx lets your app or help desk send each incoming request to an agent through the API and get back a category, priority and draft reply."
---

# Classify incoming requests with an agent called from your system

Modelyx lets your app or help desk send each incoming request to an agent through the API and get back a category, priority and draft reply.

**Level:** Analysis · **Result:** [Texts](results/text.md) · **For:** [Developers](roles/developer.md), [Operations and assistants](roles/ops.md)

## Example request

```text
Build an agent that classifies incoming support messages for our online furniture store into delivery, assembly, return, payment or other, sets a priority from 1 to 3 and drafts a short reply. Our back office will call it through the API for every new message.
```

## What you need

- Your categories and rules
- An API key from Settings → API Keys

## What you get

- An agent your system can call through the API
- Category, priority and a draft reply per message
- Consistent results across thousands of messages

## How it works

You describe the rules once in the agent's instructions, and your system sends each message to that agent through the API and gets a structured answer back.

## Tips

- Ask the agent to return its answer as JSON with fixed fields so your system can read it.

## Limits

- Keep the API key on your server; anyone with it can run your agents on your credits.

## Learn more

Step-by-step guide: [API](../agents/api.md).

## Related tasks

- [Get a daily language lesson in your Telegram](language-morning-bite-telegram.md)
- [Answer customer questions in your Telegram bot from your files](telegram-bot-answers-from-library.md)
- [Track GitHub Trending and new releases in your stack daily](daily-github-trending-digest.md)
- [Get a weekly digest of tech trends for your stack](weekly-tech-trend-digest.md)
