---
title: Text Generation Application
---

A text generation application is a type of application specifically designed to produce content in specific formats. These applications allow users to input specific requirements or parameters and automatically generate text output that conforms to preset formats. Unlike chat assistants that can maintain continuous conversations, text generation applications primarily process single inputs to provide one-time content generation services, with "Prompt Generator" being a typical example.

## Use Cases

Text generation applications are particularly suitable for scenarios requiring quick, batch generation of standardized content, such as creative writing, marketing copy, or technical documentation.

## How to Configure

Text generation applications support configuration of: pre-conversation prompts, variables, context, opening messages, and suggested follow-up questions.

Let's take creating a **Weekly Report Generator** application as an example to explain how to configure a text generation application.

### Creating the Application

Click the "Create Application" button on the homepage to create an application. Enter the application name and select **Text Generation Application** as the application type.

![](https://assets-docs.dify.ai/2024/12/8012e6ed06bfb10b239a4b999b1a0787.png)

### Configuring the Application

After creating the application, you'll automatically be redirected to the application overview page, where you can set variables, add context, and configure additional chat features for the application.

![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/6e45b9cecf2280814de20375ca0a3734.png)

#### Application Configuration

**Writing Prompts**

Prompts are used to constrain AI responses to be professional and precise. You can use the built-in prompt generator to write appropriate prompts. Prompts support the insertion of form variables, such as `{{input}}`. The values of variables in the prompt will be replaced with user-entered values.

Example:
1. Enter prompt instructions requesting a prompt for an interview scenario.
2. The right content box will automatically generate the prompt.
3. You can insert custom variables into the prompt.

![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/c2cf3853cfda01d111df29dffdef8efe.png)

#### Adding Context

If you want to limit AI conversations to within a knowledge base, such as enterprise customer service conversation standards, you can reference the knowledge base in the "Context" section.

![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/dcdcfbe0d7b44792c53d1d026aeebe29.png)

### Debugging

Fill in the user input fields on the right side and enter content for debugging.

![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/1509ff763400980eba81dac1f01d996f.png)

If the response results are not satisfactory, you can adjust the prompts and underlying model. You can also debug simultaneously with multiple models to find the most suitable configuration.

![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/07a8c40ba969e849f083e27dee6992b0.png)

**Debugging with Multiple Models:**

If debugging with a single model feels inefficient, you can use the **"Debug with Multiple Models"** feature to batch review model response effects.

![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/bf067815b692fc617c4f23f02e687dd9.png)

Supports adding up to 4 large models simultaneously.

![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/67818c83a30cae24eb7048fe9dc96538.png)

⚠️ When using the multi-model debugging feature, if you only see some large models, this is because Keys for other large models haven't been added yet. You can manually add Keys for multiple models in "Add New Provider".

### Publishing the Application

After debugging the application, click the **"Publish"** button in the top right corner to generate a standalone AI application. In addition to experiencing the application through a public URL, you can also perform secondary development based on APIs or embed it into websites. For details, please refer to [Publishing Applications](/en/guides/application-publishing/launch-your-webapp-quickly/web-app-settings).

If you want to customize a published application, you can fork our open-source WebApp template and modify it to meet your scenario and style requirements.

## Frequently Asked Questions

**How to add custom tools in the text generator?**

Text generation applications do not support adding third-party tools.

{/*
Contributing Section
DO NOT edit this section!
It will be automatically generated by the script.
*/}

---

[Edit this page](https://github.com/langgenius/dify-docs/edit/main/en/guides/application-orchestrate/text-generator.mdx) | [Report an issue](https://github.com/langgenius/dify-docs/issues/new?title=Documentation%20Issue%3A%20genera&body=%23%23%20Issue%20Description%0A%3C%21--%20Please%20briefly%20describe%20the%20issue%20you%20found%20--%3E%0A%0A%23%23%20Page%20Link%0Ahttps%3A%2F%2Fgithub.com%2Flanggenius%2Fdify-docs%2Fblob%2Fmain%2Fen/guides/application-orchestrate%2Ftext-generator.mdx%0A%0A%23%23%20Suggested%20Changes%0A%3C%21--%20If%20you%20have%20specific%20suggestions%20for%20changes%2C%20please%20describe%20them%20here%20--%3E%0A%0A%3C%21--%20Thank%20you%20for%20helping%20improve%20our%20documentation%21%20--%3E)

