Skip to main content

Write Content Action

The Write Content action uses AI to generate content based on your prompt and workflow context. It can create product descriptions, emails, SMS messages, and other content types with customizable tone, length, and format.

Jerome Bajou avatar
Written by Jerome Bajou
Updated over a week ago

Overview

The Write Content action uses AI to generate content based on your prompt and workflow context. It can create product descriptions, emails, SMS messages, and other content types with customizable tone, length, and format. The AI automatically uses available workflow context to personalize and enhance the generated content.


Configuration

Your Prompt (Required)

Describe what content you want to generate. The AI will use this along with workflow context to create the content. Supports variables.

Examples:

Write a tour description for {product.title} highlighting its key features 
Create an email thanking {customer.name} for their booking
Send an SMS reminder about {booking.start_time}

Content Type (Required)

Select the type of content to generate:

  • Product Description - Detailed product descriptions (100-300 words by default)

  • Email - Professional email messages (50-150 words by default, no signature or subject line)

  • SMS - Concise SMS messages (under 160 characters by default, no signature)


Tone (Optional)

Select the tone for the generated content. Default: professional

  • Professional - Business-like and formal

  • Casual - Relaxed and informal

  • Friendly - Warm and approachable

  • Formal - Very formal and respectful


Max Length (Optional)

Set a maximum length constraint:

  • For SMS: Maximum number of characters (default: 160)

  • For Email/Product Description: Maximum number of words (defaults vary by type)

Leave empty to use default length guidance for each content type.

Examples:

160 (for SMS) 
300 (for product description)
150 (for email)

Output Format (Optional)

Choose the format for the generated content. Default: plain_text

  • Plain Text - Unformatted text only

  • HTML - Formatted with HTML tags (headings, paragraphs, lists, etc.)

  • Markdown - Formatted with Markdown syntax


Output

Returns a written_content object in the workflow context with:

  • content - The generated content text

  • content_type - Type of content that was generated (product_description, email, sms)

  • tone - Tone used in the content (professional, casual, friendly, formal)

  • output_format - Format of the output (plain_text, html, markdown)

Accessing Generated Content

After this action, you can access:

{written_content.content} 
{written_content.content_type}
{written_content.tone}
{written_content.output_format}

Examples

1. Generate Product Description

Configuration:

Your Prompt: Write a compelling tour description for {product.title} that highlights its unique features and destinations 
Content Type: Product Description
Tone: Professional
Max Length: 250
Output Format: Plain Text

2. Generate Email Message

Configuration:

Your Prompt: Write an email thanking {customer.name} for booking {product.title} on {booking.start_date} 
Content Type: Email
Tone: Friendly
Max Length: 120
Output Format: Plain Text

3. Generate SMS Reminder

Configuration:

Your Prompt: Send an SMS reminder to {customer.name} about their booking tomorrow at {booking.start_time} 
Content Type: SMS
Tone: Friendly
Max Length: 160
Output Format: Plain Text

4. Generate HTML Product Description

Configuration:

Your Prompt: Create a detailed tour description for {product.title} with key features and pricing 
Content Type: Product Description
Tone: Professional
Output Format: HTML

Use Cases

  • Product descriptions - Automatically generate compelling product descriptions

  • Email automation - Create personalized email messages for customers

  • SMS notifications - Generate concise SMS reminders and updates

  • Marketing content - Create marketing copy based on product or customer data

  • Booking confirmations - Generate personalized booking confirmation messages

  • Follow-up communications - Create follow-up emails after bookings or events

  • Dynamic content - Generate content that adapts to workflow context


Content Types

Product Description

  • Default length: 100-300 words

  • Best for: E-commerce, booking platforms, service listings

  • Features: Highlights key features, benefits, and unique selling points

  • Example use: Generate descriptions for new products automatically

Email

  • Default length: 50-150 words

  • Best for: Customer communications, confirmations, follow-ups

  • Features: Well-structured message, no signature or subject line included

  • Example use: Thank you emails, booking confirmations, reminders

SMS

  • Default length: Under 160 characters

  • Best for: Quick reminders, urgent notifications, brief updates

  • Features: Concise and to the point, no signature

  • Example use: Booking reminders, last-minute updates, confirmations


Tone Options

Professional

  • Business-like and formal

  • Suitable for: B2B communications, formal confirmations, corporate emails

Casual

  • Relaxed and informal

  • Suitable for: Friendly reminders, casual updates, informal communications

Friendly

  • Warm and approachable

  • Suitable for: Customer service, welcome messages, thank you notes

Formal

  • Very formal and respectful

  • Suitable for: Official communications, legal notices, formal confirmations


Output Formats

Plain Text

  • Unformatted text

  • Best for: Simple messages, SMS, basic emails

  • Example: "Thank you for your booking. We look forward to seeing you."

HTML

  • Formatted with HTML tags

  • Best for: Rich emails, product descriptions with formatting

  • Example: <h2>Product Features</h2><p>This amazing product includes...</p>

Markdown

  • Formatted with Markdown syntax

  • Best for: Documentation, formatted text that can be converted

  • Example: ## Product Features\n\nThis amazing tour includes...


Example Workflows

1. Auto-Generate Product Descriptions

Workflow:

  1. Product Created trigger

  2. Write Content (Product Description for {product.title})

  3. Update Product ({product.id}, description: {written_content.content})

2. Send Personalized Booking Confirmation

Workflow:

  1. Booking Confirmed trigger

  2. Write Content (Email thanking {customer.name} for booking {product.title})

  3. Send Notification (Email to {customer.email}, content: {written_content.content})

3. SMS Reminder System

Workflow:

  1. Booking Confirmed trigger

  2. Delay (1 day before booking)

  3. Write Content (SMS reminder about {booking.start_time})

  4. Send Notification (SMS to {customer.phone}, content: {written_content.content})

4. Dynamic Marketing Email

Workflow:

  1. Customer Created trigger

  2. Write Content (Welcome email for {customer.name})

  3. Condition: If {customer.preferred_language} equals en

  4. Action (True): Send Notification (Email with {written_content.content})


Workflow Context Integration

The Write Content action automatically includes:

  • Workflow Name - The name of the current workflow

  • Workflow Description - The description of the workflow (if available)

  • Available Context Data - All variables and data from previous workflow steps

The AI uses this context to:

  • Personalize content with specific details

  • Reference relevant information from the workflow

  • Create accurate and context-aware content

Note: All currency values in the context are in cents unless the specified currency does not use cents (JPY, KRW, VND, etc.).


AI Credits

This action uses AI credits based on actual token usage:

  • Prompt tokens (your prompt + workflow context)

  • Completion tokens (generated content)

Credits are automatically charged based on usage. Longer prompts and context data will use more prompt tokens, while longer generated content will use more completion tokens.


Best Practices

  1. Be specific in your prompt - Provide clear instructions about what you want to generate

  2. Use variables - Reference workflow context variables to personalize content

  3. Choose appropriate content type - Match the content type to your use case

  4. Set tone appropriately - Select a tone that matches your brand and audience

  5. Use max length wisely - Set constraints for SMS and when space is limited

  6. Leverage workflow context - The AI automatically uses available context, so ensure relevant data is available

  7. Test different formats - Try HTML or Markdown for richer formatting when needed

  8. Review generated content - Always review AI-generated content before sending to customers

  9. Monitor costs - Be aware of AI credit usage, especially with large context data

  10. Combine with other actions - Use generated content in Send Notification, Update actions, etc.


Tips for Better Results

For Product Descriptions

  • Include product features, benefits, and unique selling points in your prompt

  • Reference product data from context: {product.title}, {product.description}, {product.price}

  • Specify target audience if relevant

For Emails

  • Be clear about the purpose: thank you, confirmation, reminder, etc.

  • Reference customer and booking details from context

  • Specify if you need specific information included

For SMS

  • Keep prompts concise

  • Focus on essential information only

  • Remember SMS has character limits


Related Documentation

Did this answer your question?