Docs
Text Generate Node

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.

text-gen.png

Features

Key Functionalities
  1. Generative Model Selection: Allows users to select credentials for their preferred generative model, ensuring flexibility and compatibility with various LLMs.

  2. Customizable Prompts: Features a field for creating prompt templates, enabling tailored input for specific use cases.

  3. 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.

  4. Additional Properties Management: Offers expandable sections for configuring advanced properties to fine-tune AI-generated outputs.

Benefits
  1. Flexibility: Supports integration with multiple LLMs, allowing users to utilize different models based on their specific needs and use cases.

  2. User-Centric Design: Provides intuitive interfaces for prompt customization and system prompt definition, making it accessible to both beginners and advanced users.

  3. Enhanced Control: Enables precise control over the AI’s behavior and output quality through customizable prompts and system configurations.

  4. Scalability: Facilitates the creation of reusable prompt templates for diverse workflows, ensuring consistency across projects.

What can I build?

  1. Automated content creation workflows for blogs and social media posts.
  2. Intelligent chatbots capable of generating dynamic and personalized responses.
  3. Automated report generation systems for business intelligence and data analysis.
  4. Customizable email and message drafting tools for improved communication efficiency.

Setup

Select the Text Generate Node

  1. Fill in the required parameters.
  2. Build the desired flow
  3. Deploy the Project
  4. Click Setup on the workflow editor to get the automatically generated instruction and add it in your application.

Configuration Reference

ParameterDescriptionExample Value
Generative Model NameSelect the model to generate text based on the prompt.Gemini Model
Prompt TemplateDefine the instructions for generating the text output.Define the instructions for generating the text output.Tell me something about Bali
System PromptSystem prompt to guide the LLMYou 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

ProblemSolution
Invalid API KeyEnsure the API key is correct and has not expired.
Dynamic Content Not LoadedIncrease the Wait for Page Load time in the configuration.

Debugging

  1. Check Lamatic Flow logs for error details.
  2. Verify API Key.

Was this page useful?

Questions? We're here to help

Subscribe to updates