AI: Summarize text
This service task summarizes a given text using AI. The desired length of the summary can optionally be controlled.
Technical name: prio_aiSummarize
Input
| Field | Type | Required | Description |
|---|---|---|---|
text |
String | Yes | The text to summarize. |
maxLength |
String | No | Desired length: short, medium (default) or long. |
Input example
{
"text": "In today's meeting it was decided to complete Project Alpha by March 15. Mr. Müller will take over coordination. Ms. Schmidt will handle the budget approval. Open items are the server migration and onboarding of new employees.",
"maxLength": "short"
}
Output
| Field | Type | Description |
|---|---|---|
summary |
String | The generated summary. |
wordCount |
Number | Number of words in the summary. |
Output example
{
"summary": "Project Alpha to be completed by March 15. Müller coordinates, Schmidt approves budget. Open: server migration and onboarding.",
"wordCount": 16
}
Length control
| Value | Description |
|---|---|
short |
1–2 sentences (~50 words) |
medium |
Short paragraph (~150 words) |
long |
Detailed paragraph (~300 words) |
If maxLength is not specified, medium is used.
Notes
- The language of the original text is preserved (no automatic translation).
- The service makes up to three attempts to produce a valid summary.
- The word count (
wordCount) is calculated server-side and is always accurate regardless of the AI response.