AI Screenwriter Assistant
AnalyticDB for PostgreSQL provides AI-powered script creation capabilities for short-form dramas, built on GraphRAG (Graph-Augmented Retrieval and Generation) and AnalyticDB for PostgreSQL technologies. Unlike the traditional "prompt-based video generation" model, the AI Screenwriter Assistant is an intelligent creative system that ensures character consistency, plot continuity, personalized storytelling, and continuous evolution.
Features
|
Feature |
Description |
|
Offers an end-to-end script generation workflow with granular parameter controls, allowing you to generate scripts in your desired style and at your preferred pace. It supports both Quick Configuration and Advanced Customization modes to meet various creative needs. |
|
|
Extracts the core narrative framework from an original work and adapts it to a new genre. You can choose from three levels of framework retention: Simplified, Standard, and Complete. |
|
|
You can fine-tune generated scripts using two methods: AI-powered optimization and manual editing. |
|
|
An |
|
|
Automatically assesses scripts across ten dimensions and supports one-click bulk fixes, creating a closed-loop process of "Generate → Inspect → Repair". |
|
|
Automatically breaks down the script into scene elements to generate a |
Script creation and configuration
The AI Screenwriter Assistant provides an end-to-end script generation workflow with fine-grained parameter controls. You can choose between Quick Configuration and Advanced Customization modes.
Quick configuration
Quick Configuration offers out-of-the-box, scene-based templates and core parameter options, ideal for quickly starting a creative project.
The system includes four built-in templates for short-form dramas, each with default settings for duration, pacing, and content style that you can customize:
|
Template |
Episode duration |
Pacing mode |
Content focus |
|
Viral Sensation |
30 seconds |
Extreme |
Dialogue-intensive |
|
Fast-paced Short Drama |
1 minute |
Extreme |
Dialogue-intensive |
|
High-quality Micro-drama |
3 minutes |
Standard |
Emotionally nuanced |
|
Long-video Series |
5 minutes |
Relaxed |
Balanced |
You can also provide personalized requirements, for example:
Style-related
"I want a lighthearted and humorous script, not too dramatic."
"The narrative style should be suspenseful and tense, with concise, punchy dialogue."
Plot-related
"Strengthen the workplace conflict plot and weaken the romance storyline."
"No love triangles; include more descriptions of friendship and family."
Character-related
"The female lead should be independent and strong, not a naive damsel in distress."
"Focus on the relationship between the protagonist and their mentor."
Constraint-related
"No violent or graphic scenes."
"Must include a plot twist."
Advanced customization
Advanced Customization is designed for users who need fine-grained creative control, offering more in-depth parameters.
-
Basic settings
Parameter
Description
Script Format
Choose between Standard format (with scene descriptions, character dialogue, and action cues) or Narration format (voice-over driven, suitable for animated recaps or narrated live-action dramas).
Episode Duration
Adjustable from 30 seconds to 10 minutes.
Target Episode Count
Set the episode count automatically or specify it manually.
Adaptation Mode
Options include Faithful Adaptation, Standard Adaptation (70%–80% fidelity), Creative Adaptation, and Framework Imitation. Framework Imitation is a distinct creative mode that extracts a structural framework to create a new work and is not measured by fidelity.
-
Pacing control
Parameter
Description
Plot conflict points (per episode)
Three levels: Relaxed, Standard, and Tight. Standard mode averages about three conflict points per episode for a balanced pace.
Emotional hooks (per episode)
Three levels: Concise, Standard, and Rich. Standard mode averages about five emotional hooks per episode.
-
Dialogue control
Parameter
Description
Dialogue density
Freely adjustable from 10% to 70%, with quick selection presets: Low, Standard, High, and Intensive.
Character count per line
Adjustable from 15 to 30 characters using a slider to precisely control the rhythm of the dialogue.
The Advanced Customization mode also supports personalized requirements, for example:
Style-related
"I want a lighthearted and humorous script, not too dramatic."
"The narrative style should be suspenseful and tense, with concise, punchy dialogue."
Plot-related
"Strengthen the workplace conflict plot and weaken the romance storyline."
"No love triangles; include more descriptions of friendship and family."
Character-related
"The female lead should be independent and strong, not a naive damsel in distress."
"Focus on the relationship between the protagonist and their mentor."
Constraint-related
"No violent or graphic scenes."
"Must include a plot twist."
Imitation and adaptation
Framework imitation is a creative mode separate from fidelity-based adaptation. The system extracts the core narrative framework (structure, conflict patterns, emotional arcs, and character relationships) from the original work and transfers it to a new target genre. The output is entirely independent of the original work in its expression, making it ideal for cross-genre adaptation.
Target genre
Select the genre for the new script. The system automatically maps the original framework to the corresponding world-building and narrative context of the chosen genre. The platform has built-in world-building for the following six genres:
-
Modern Urban
-
Ancient Imperial Court
-
Xuanhuan/Xianxia
-
Sci-fi Future
-
Republican-era Legend
-
Wuxia/Jianghu
Framework retention level
Control how much of the original framework is extracted and transferred to the new work:
|
Level |
Retained content |
Discarded content |
|
Simplified |
Retains only the main conflict structure. |
Specific conflict details, emotional arcs, and character relationship networks. |
|
Standard |
Retains the story structure and core conflict patterns. |
Details of emotional arcs and minor character relationships. |
|
Complete |
Retains the complete story framework and all key elements, including structure, conflict patterns, emotional arcs, and character relationships. |
Discards only surface-level content such as specific dialogue and scene details. |
Script optimization and editing
You can fine-tune a generated script in the workbench using two methods, balancing efficiency with precision.
-
AI optimization
Enter your optimization suggestions below the target episode's content. The system interprets your intent and revises the script automatically.
-
Manual editing
Click the edit button next to an episode to modify the script content directly. This method is ideal for scenarios requiring precise control over the output.
AI assistant
The AI assistant, an agent embedded in the creation workbench, acts as an on-demand script analysis consultant to help you diagnose script issues and provide creative suggestions.
The AI assistant automatically links to the script project in your workbench and can perform in-depth analysis on specific episodes or the overall plot. Common use cases include:
-
Dialogue quality diagnosis: Analyze whether the character dialogue in a specific episode is natural and fluent.
-
Cross-episode comparative analysis: Compare the pacing between different episodes to identify issues with plot tension.
-
Character development summary: Outline the personality growth and emotional changes of main or supporting characters.
The AI assistant focuses on script analysis and creative suggestions. To modify the script content directly, use the Manual editing or AI optimization features for each episode in the workbench.
Quality report and iterative optimization
After a script is generated, the system automatically triggers a quality inspection process. It provides an overall score and a list of issues by assessing the script across the following ten dimensions:
-
Structure and Pacing
-
Character Development
-
Conflict and Drama
-
Dialogue Quality
-
Visual Storytelling
-
Emotional Resonance
-
Logical Consistency
-
Thematic Expression
-
Formatting Compliance
-
Market Fit
For issues identified during the inspection, you can use one-click smart optimization to automatically fix them in bulk by episode. You can also add custom optimization requirements, creating a complete "Generate → Inspect → Repair" loop that eliminates the need for manual, line-by-line corrections.
Generate video prompts
Once the script is ready, click Generate Video Prompts to submit a prompt generation task. The system automatically breaks down the script into key elements such as scenes, character actions, and atmosphere, generating a prompt for each scene that can be used directly by video generation models. This connects the script creation process to the video production pipeline.
Prerequisites
If you manually enable the AI Screenwriter Assistant, you must complete the following configuration. This is not required if you enable the service using the AnalyticDB for PostgreSQL AI assistant.
-
You have created an AnalyticDB for PostgreSQL 7.0 Standard Edition
instancewithVector Engine Optimizationenabled. For more information, see Create an instance .NoteCurrently, the AI Screenwriter Assistant service is only available in the China (Beijing), China (Hangzhou), China (Shanghai), and Singapore
regions. -
You have created an initial account .
-
You have configured the network settings.
-
Enable a public NAT gateway for the
VPCwhere your AnalyticDB for PostgreSQLinstanceresides. Then, create anSNAT entryand bind it to theVPCorvSwitchof theinstanceto grant it public network access. -
Add the CIDR block of the
vSwitchused by thepublic NAT gatewayto the allowlist of your AnalyticDB for PostgreSQLinstance.You can find the
vSwitchCIDR block by navigating to the details page of the targetpublic NAT gateway, selecting the Basic Information tab, and clicking the vSwitch ID .
-
Enable AI Screenwriter Assistant
Method 1: Enable the AnalyticDB for PostgreSQL AI assistant
-
Log on to the AnalyticDB for PostgreSQL console.
-
On the right side of the page, click the AnalyticDB for PostgreSQL AI assistant icon
. -
Start a conversation with the AI assistant by typing:
Deploy the AI Screenwriter Assistant for me in the <region> region, <availability zone> availability zone.NoteWe recommend you choose one of the following
regionsandavailability zoneswith sufficient resources: China (Hangzhou) Zone J, China (Shanghai) Zone L, China (Beijing) Zone I, or Singapore Zone C. -
Follow the prompts from the AI assistant to confirm the information and wait for the service to be enabled.
ImportantThe
instanceprovisioning takes about 5 to 10 minutes, and the service deployment takes another 5 to 10 minutes. If the service is not enabled within this time, join our Community Support group for assistance.
Method 2: Enable manually
-
Log on to the AnalyticDB for PostgreSQL console. In the top navigation bar, select the
regionwhere yourinstanceis located, and then click the targetinstanceID. -
In the left-side navigation pane, choose .
-
Click Create Service, configure the following parameters, and then click OK.
Parameter
Description
Example
Service Description
Optional. A description to identify the purpose of the service.
AI live-action drama service
Administrator Username
The administrator username for the service.
ImportantMake sure to remember this username and password.
drama_admin
Administrator Password
The administrator password for the service. Enter it again in the confirmation field.
Admin_password
IP Address Whitelist
The list of IP addresses that are permitted to access the service.
127.0.0.1,223.72.xx.xx
-
This service is currently in public beta. Please join our Community Support group where our on-duty engineers will configure the service dependencies for you.
After the dependencies are configured, the service status changes to Running.
-
In the row of the target service, click Log On in the Actions column.
-
Configure the database connection information.
-
On the
instancedetails page, click Basic Information in the left-side navigation pane. In the Database Connection Information section, you can find the Internal Endpoint and Internal Port. -
The username and password are the initial account credentials created in the prerequisites.
-
Community support
If you have any questions or suggestions, please join the AI Screenwriter Assistant DingTalk user group: 154575028158.
