Use Cases
- Generate email responses based on incoming messages
- Summarize long documents or commits
- Create content from templates with dynamic data
- Transform data into human-readable formats
- Perform text analysis and classification
Configuration
API Authentication
Your OpenAI or Anthropic API key, depending on the selected model.
- For OpenAI models (GPT-3.5, GPT-4): Get your key from OpenAI Platform
- For Anthropic models (Claude): Get your key from Anthropic Console
Model Selection
The AI model to use for text generation. Available options:OpenAI Models:
gpt-3.5-turbo- Fast and cost-effectivegpt-4- Most capable GPT-4 modelgpt-4-turbo- Faster GPT-4 variant
claude-3-haiku-20240307- Fastest, most compact modelclaude-3-sonnet-20240229- Balanced performance and speedclaude-3-opus-20240229- Most powerful Claude model
Prompt Configuration
The text prompt that instructs the AI model on what to generate. You can include dynamic fields from previous workflow steps by clicking on available input fields.Example:
Input Requirements
The Text Generator can access data from any previous agent in the workflow. Click on the input structure display to see available fields and insert them into your prompt.Output Structure
The generated text content from the AI model.
Example Output
Usage Example
Email Auto-Responder
Configure a workflow that reads emails and generates personalized responses:- Gmail Reader Agent - Reads incoming emails
- Text Generator Agent - Configured with:
- Gmail Sender Agent - Sends the generated response
Commit Summarizer
Generate summaries of GitHub commits:Best Practices
Prompt Engineering
- Be specific and clear in your instructions
- Provide examples of desired output format
- Use structure (bullet points, numbered lists) in your prompts
- Test prompts with the “Test Agent” button before deploying
Model Selection
- Use GPT-3.5 Turbo for simple tasks and faster responses
- Use GPT-4 or Claude Opus for complex reasoning and analysis
- Use Claude Haiku for speed-critical applications
Cost Optimization
- Keep prompts concise to minimize token usage
- Use the most appropriate model for your task (don’t use GPT-4 for simple tasks)
- Test thoroughly to avoid unnecessary API calls
Error Handling
Common errors and solutions:- Invalid API Key: Verify your API key is correct and has not expired
- Rate Limit Exceeded: Wait a moment and try again, or upgrade your API plan
- Prompt Too Long: Reduce the amount of context in your prompt
- Model Not Available: Ensure your API key has access to the selected model