Text Generate Node Documentation
The Text Generate node allows users to programmatically generate text outputs by submitting prompts to selected LLMs. These text outputs can be further processed within each flow. This node is particularly useful for applications requiring dynamic text creation, such as chatbots, content creation, and automated report generation.
Features
Key Functionalities
-
Generative Model Selection: Allows users to select credentials for their preferred generative model, ensuring flexibility and compatibility with various LLMs.
-
Customizable Prompts: Features a field for creating prompt templates, enabling tailored input for specific use cases.
-
System Prompt Definition: Includes an option to define a system-level prompt to guide the AI’s behavior, ensuring context-aware and role-specific responses.
-
Additional Properties Management: Offers expandable sections for configuring advanced properties to fine-tune AI-generated outputs.
Benefits
-
Flexibility: Supports integration with multiple LLMs, allowing users to utilize different models based on their specific needs and use cases.
-
User-Centric Design: Provides intuitive interfaces for prompt customization and system prompt definition, making it accessible to both beginners and advanced users.
-
Enhanced Control: Enables precise control over the AI’s behavior and output quality through customizable prompts and system configurations.
-
Scalability: Facilitates the creation of reusable prompt templates for diverse workflows, ensuring consistency across projects.
What can I build?
- Automated content creation workflows for blogs and social media posts.
- Intelligent chatbots capable of generating dynamic and personalized responses.
- Automated report generation systems for business intelligence and data analysis.
- Customizable email and message drafting tools for improved communication efficiency.
Setup
Select the Text Generate Node
- Fill in the required parameters.
- Build the desired flow
- Deploy the Project
- Click Setup on the workflow editor to get the automatically generated instruction and add it in your application.
Configuration Reference
Parameter | Description | Example Value |
---|---|---|
Generative Model Name | Select the model to generate text based on the prompt. | Gemini Model |
Prompt Template | Define the instructions for generating the text output.Define the instructions for generating the text output. | Tell me something about Bali |
System Prompt | System prompt to guide the LLM | You are Travel Planner |
Low-Code Example
nodes:
- nodeId: LLMNode_565
nodeType: LLMNode
nodeName: Text Generate
values:
promptTemplate: Tell me something about Bali
systemPrompt: You are an AI Assistant
messages: '[]'
generativeModelName:
provider_name: openai
type: generator/text
credential_name: Test OpenAI
credentialId: aeeb2922-a7d3-431a-a376-77e01e725c51
model_name: gpt-4-turbo
needs:
- triggerNode_1
Troubleshooting
Common Issues
Problem | Solution |
---|---|
Invalid API Key | Ensure the API key is correct and has not expired. |
Dynamic Content Not Loaded | Increase the Wait for Page Load time in the configuration. |
Debugging
- Check Lamatic Flow logs for error details.
- Verify API Key.