---
title: "Suggest Agent"
method: POST
path: "/agents/suggest"
tags: ["Agents"]
---

# Suggest Agent

`POST /agents/suggest`

## Request

- Base URL: `https://api.muapi.ai`
- URL: `https://api.muapi.ai/agents/suggest`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (client credentials, token URL `https://api.muapi.ai/oauth/token`)

Suggest an agent configuration (persona + skills) based on user's high-level goal.
Uses OpenAI to generate recommendations.

## Query parameters

- `team_id` integer, nullable

## Headers

- `x-api-key` string
- `x-embed-code` string, nullable
- `x-agent-embed-code` string, nullable
- `x-whitelabel-studio` string, nullable
- `authorization` string, nullable

## Request body

- AgentSuggestionRequest
  - `prompt` string, required

## Response `200`

Successful Response

- AgentSuggestionResponse
  - `name` string, required
  - `description` string, required
  - `system_prompt` string, required
  - `recommended_skill_ids` string[], required
  - `welcome_message` string, nullable
  - `initial_suggestions` object[], nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/muapi/apis/muapi-api.md) · [All operations](https://skmtc.dev/muapi/apis/muapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/muapi/apis/muapi-api/revisions/e4b7374381e5?raw)
