AI: Generate keywords
This service task extracts the most relevant keywords and key phrases from a given text using AI. The maximum number of keywords can optionally be limited.
Technical name: prio_aiGenerateKeywords
Input
| Field | Type | Required | Description |
|---|---|---|---|
text |
String | Yes | The text to extract keywords from. |
maxKeywords |
Number | No | Maximum number of keywords (default: 10, maximum: 50). |
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.",
"maxKeywords": 5
}
Output
| Field | Type | Description |
|---|---|---|
keywords |
String[] | Array of extracted keywords, sorted by relevance. |
Output example
{
"keywords": ["Project Alpha", "budget approval", "coordination", "meeting", "March"]
}
Notes
- Keywords are returned in the same language as the input text (no translation).
- A keyword can be a single word or a short phrase (max 3 words).
- Duplicates are automatically removed.
- Keywords are sorted by relevance (most relevant first).
- The service makes up to three attempts to produce a valid response.