---
title: "Generate Outlook suggestion prompts"
method: POST
path: "/api/chat/outlook-suggestions"
tags: ["chat"]
---

# Generate Outlook suggestion prompts

`POST /api/chat/outlook-suggestions`

## Request

- Base URL: `https://localhost:8080`
- URL: `https://localhost:8080/api/chat/outlook-suggestions`
- Auth: none declared

Returns 2 AI-generated suggestion prompts based on the current email context (read or compose mode)

## Request body

- OutlookSuggestionRequestDto
  - `mode` 'read' | 'compose', required: Outlook mode: reading an email or composing a reply
  - `emailSubject` string: Email subject line
  - `emailFrom` string: Sender display name or address
  - `emailBody` string: Plain-text email body used for suggestions
  - `attachmentNames` string[]: File names of attachments on the email

## Response `200`

Suggestions generated

- OutlookSuggestionResponseDto
  - `suggestions` string[], required: AI-generated suggestion labels

---

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