Insights

Guide to Generating Text with AI in Lark Base for Enterprises

Do you want to optimize your workflow? Do you want to automate content creation? The AI text generation feature in Lark Base will help you achieve that.

This feature helps you summarize data quickly. You can also write content automatically in Lark Workflow. Let’s explore this amazing tool in detail.

Introduction to AI Text Generation in Lark Base

AI text generation in Lark Base is a smart feature. This tool allows you to automatically generate text snippets using input data directly from your records.

You can use AI-generated text for subsequent steps, such as sending messages or updating new records.

Supported AI Models

Lark provides two flexible AI model options:

  • Lark Base Built-in AI: Easy to use and quick to set up.
  • OpenAI Model (GPT): Requires your own API key. Suitable for complex tasks.

AI Usage Quotas and Limits

Lark specifies usage quotas based on each service plan. You should understand them to ensure smooth operations.

Starter Plan

  • Daily limit: 30,000 times/day.
  • Monthly limit: 300,000 times/month.

Basic, Pro, and Enterprise Plans

  • Daily limit: 200,000 times/day.
  • Monthly limit: 2,000,000 times/month.

Important Note: The above quotas apply to built-in AI features and are shared with the AI record updating feature.

Instructions for Configuring AI Text Generation in Lark Base

We will guide you through the detailed setup process step-by-step below.

Step 1: Create a new Workflow

  • Open your Lark Base database.
  • Click on the Workflow button in the bottom-left corner.
  • Select Start From Scratch to begin a new workflow.

[Open Lark Base] -> [Click Workflow] -> [Select Start From Scratch]

Step 2: Add and configure Nodes

  • Choose a trigger condition according to your needs.
  • Example: Select When a new record is added.
  • Click on Then do this to add an action.
  • Select the AI-generated text action.
  • If you want to use GPT, select AI-generated text (GPT model).

How to Set Up Effective Prompts

The prompt determines the quality of the generated text. Therefore, you should set up detailed instructions.

Integrate OpenAI API Key

If using the GPT model, you need to enter your API key.

  • Click Switch Model in the bottom-left corner.
  • Select the desired OpenAI model.
  • Enter your API key into the system.

Enter Prompts and Reference Data

  • Type your prompt requirement into the Enter prompt field.
  • Click the ⊕ icon to pull data from your table.
  • You can reference data from record fields.
  • To aggregate data across multiple records, add a Find records node before the AI node.

Note: AI cannot reference attachments or barcodes. Images from local computers are also not supported.

Automatic Prompt Optimization (Optimize Prompt)

Lark provides a convenient prompt optimization tool.

  • Type your initial prompt into the text box.
  • Click the Optimize button in the top-right corner.
  • AI will automatically refine the prompt for clarity.
  • You can accept or discard the optimized prompt.

Testing and Verifying AI Results

Before activating, you should test the workflow to avoid unexpected errors.

How to perform a test run

  • Click the Test Results button in the bottom-left corner.
  • The screen will be divided into two distinct sections.

Configurations Panel (Left Side)

  • Displays the prompt you configured.
  • Displays test data source (Data used for testing).
  • Click Generate Test Data to change the testing sample.
  • You can manually input test data.

Preview Panel (Right Side)

  • Displays the text generated by AI.
  • Click Re-generate if you want AI to create new text.

Using AI Text in Subsequent Nodes

The generated AI text serves as input for following steps, enabling end-to-end Lark Base automation.

Example of automatically updating records:

  1. Add an Update record action node afterward.
  2. Navigate to the Set record content field.
  3. Click the ⊕ icon.
  4. Select data from AI-generated text in step 2.
  5. Click Save and Activate to finish.

Troubleshooting Common Errors

When using AI in Lark Workflow, you may encounter errors. Refer to the table below for quick fixes.

System Error Message Cause Quick Resolution
The input length exceeds the limit in AI-generate text Prompt length exceeds 8,192 UTF-8 characters Reduce input prompt length
An error occurred in the prompt in AI-generate text Prompt contains sensitive words or policy violations Edit prompt content
The prompt is empty in AI-generate text Prompt field is left blank Check and enter a valid prompt

Benefits of Integrating AI into Lark Base Automation

Applying automated text generation using GPT brings major benefits, saving businesses substantial operational time.

  • Save time: AI handles work in seconds instead of manual effort.
  • Minimize errors: Precise data handling without manual mistakes.
  • Boost efficiency: Personnel can focus on higher-value tasks.
  • Enhance customer support: Send automated responses rapidly.

Conclusion

AI text generation in Lark Base is an extremely powerful feature. It helps enterprises optimize automated workflows. Start implementing it today to boost your productivity.

If you encounter any issues, feel free to contact Lark Support for assistance. Wishing you successful workflow configuration!