Summarize
Creates summaries of provided text using OpenAI models, simplified for easy understanding.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Connection Id - The connection ID for the OpenAI service.
- Input Text - The text to summarize.
Options
- Model - The OpenAI model to use for summarization. Options include:
- gpt-3.5-turbo
- gpt-3.5-turbo-instruct
- gpt-4-turbo
- gpt-4
- gpt-4-32k
- Max Tokens - The maximum number of tokens to generate in the completion.
- Timeout (sec) - Timeout for the request. Only available with Robomotion Credits. Leave blank for default value (120+).
Output
- Summary - The summarized version of the input text.
How It Works
The Summarize node uses OpenAI models to create concise summaries of provided text. When executed, the node:
- Validates the provided Connection Id
- Prepares a system prompt instructing the model to summarize content for a second-grade student
- Sends the input text along with the prompt to the selected OpenAI model
- Processes the model's response to extract the summary
- Returns the summary as output
Requirements
- A valid OpenAI API key or Robomotion Credits
- An active OpenAI connection
- Input text to summarize
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid Connection Id
- Empty or invalid Input Text
- Invalid Max Tokens value
- OpenAI API errors
- Timeout errors
Usage Notes
- The default model is gpt-3.5-turbo, which provides a good balance of performance and cost
- The system prompt is designed to create summaries suitable for second-grade students, making them accessible and easy to understand
- The Max Tokens option can be adjusted based on the desired length of the summary
- For best results, provide clear and coherent input text
- When using Robomotion Credits, the timeout can be customized for better performance