❄️ Winter Sale: 40% OFF AIWU
WINTER_SECRET
Valid until Mar 1st
Workflow Variables Reference: Every Variable Available in AIWU - AIWU – AI Plugin for WordPress
Table of Contents
< All Topics

Workflow Variables Reference: Every Variable Available in AIWU

Variables are what make AIWU workflows dynamic — instead of static text, your prompts and outputs use live data from WordPress events. This reference guide covers every available variable, how to use them in prompts, and how to combine variables for complex outputs.


Before You Start

You’ll need:

  • Familiar with building custom workflows (First Custom Workflow guide)
  • AIWU with API key configured
  • Time needed: Reference document — bookmark for quick lookups
  • Plan required: Free (basic variables) · Pro (conditional logic)

How Variables Work

Variables use curly brace syntax: {variable_name}. When a workflow runs, AIWU replaces each variable with the actual value from the triggering event. A workflow triggered by a WooCommerce order automatically has access to that order’s data — no extra configuration needed.

Variables can be used in:

  • AI prompts — to pass event data to the AI for processing
  • Output actions — to include real data in messages, emails, or saved content
  • Conditions — to create if/then logic based on data values (Pro)

Post & Page Variables

Available in triggers: Post Published, Post Updated, Post Deleted, Comment Added.

Variable Returns Example value
{post_id} Post ID number 4821
{post_title} Full post title 10 Ways to Improve Your Sleep
{post_content} Full post content (HTML stripped) Long text…
{post_excerpt} Excerpt, or first 150 chars of content if no excerpt set Short summary text…
{post_url} Full permalink URL https://yoursite.com/post-slug/
{post_slug} URL slug only 10-ways-improve-sleep
{post_author} Author display name Jane Smith
{post_author_email} Author email address [email protected]
{post_date} Publication date February 25, 2026
{post_modified} Last modified date February 25, 2026
{post_category} Primary category name Health & Wellness
{post_tags} Comma-separated tag list sleep, health, productivity
{post_thumbnail_url} Featured image URL https://yoursite.com/wp-content/…
{post_type} Post type post, page, product
{post_status} Current post status publish, draft, pending

WooCommerce Variables

Available in triggers: New Order, Order Status Changed, Order Completed, Refund Requested.

Variable Returns
{order_id} Order number
{order_total} Total with currency symbol (e.g. $124.50)
{order_subtotal} Subtotal before tax/shipping
{order_tax} Tax amount
{order_shipping} Shipping cost
{order_status} Current order status (processing, completed, etc.)
{order_date} Order date
{order_items} Formatted list of items, quantities, and prices
{order_item_names} Product names only, comma-separated
{order_notes} Customer order notes
{billing_first_name} Customer first name
{billing_last_name} Customer last name
{billing_email} Customer email
{billing_phone} Customer phone
{billing_address} Full billing address
{billing_city} Billing city
{billing_country} Billing country
{shipping_address} Full shipping address
{shipping_method} Shipping method name
{payment_method} Payment gateway used

User & Comment Variables

Available in triggers: User Registered, User Login, Comment Added, Comment Approved.

Variable Returns
WordPress user ID
Username (login name)
{display_name} Display name
Email address
{user_role} User role (subscriber, editor, etc.)
{registration_date} Account creation date
{comment_content} Comment text
{comment_author} Commenter name
{comment_author_email} Commenter email

System Variables

Available in all triggers.

Variable Returns
{site_name} WordPress site title
https://aiwuplugin.com Site base URL
{current_date} Today’s date (formatted)
{current_time} Current time
{current_year} Current year (e.g. 2026)
{current_month} Current month name
{ai_output} The AI-generated text from the prompt step — use this in output actions

Using Variables in Practice

In an AI prompt:

Write a 3-sentence LinkedIn post about this new article. Title: {post_title}. Excerpt: {post_excerpt}. URL: {post_url}. Include the URL as a call to action at the end.

In an output action (Telegram message):

🆕 New order #{order_id} from {billing_first_name} {billing_last_name}
💰 {order_total} | 📦 {order_items}

{ai_output}

💡 {ai_output} is special. It inserts the result of your AI prompt step. Use it in output actions whenever you want the AI-generated text to appear in the final message or saved content.

Conditional Logic with Variables (Pro)

Use variables in workflow conditions to create branching logic:

  • {order_total} greater than 100 → send VIP notification to Slack
  • {post_category} equals “Announcements” → also post to LinkedIn
  • {billing_country} equals “US” → send USD-formatted email, else send EUR-formatted email

Add conditions in the workflow builder between trigger and action steps.


What’s Next


Last verified: AIWU v.4.9.2 · Updated: 2026-02-25

Scroll to Top