Summarize
The Summarize action uses AI to produce a concise summary of the given input text. You can control the maximum length of the output.
Summarize(
inputText: str,
maxLen: str
)
Where:
- inputText: The text content to summarize.
- maxLen: The maximum length (in characters) of the generated summary.
Example
{{set(name="long_text", value="The customer called in regarding their recent order #45231. They mentioned that the package arrived two days late and one of the items was damaged during shipping. They requested a full refund for the damaged item and expedited shipping on a replacement. The agent offered a 15% discount on their next order as compensation for the inconvenience.")}}
{{set(name="summary", value=Summarize(inputText=long_text, maxLen="100"))}}
{{SendMessage(message=summary)}}The above code snippet summarizes a lengthy customer service note into a shorter version with a maximum length of 100 characters.
Updated 17 days ago
