Skip to content

Prompt examples

Each prompt on this page was sent to the Ciaren Flow assistant on the sample data of a tutorial. The proposal was applied, run and exported to Python, and every flow ran without errors. Use the prompts as a starting point, or compare a result with the tutorial that builds the same flow by hand.

How these results were measured

Measured on 2026-11-28 with a source build of main, DeepSeek deepseek-flash and column names not shared with the provider (the default). Each prompt started on an empty canvas with the tutorial's sample data. The median prompt took 5.5 provider calls and 11 seconds; the slowest took 30 seconds. Results depend on the provider and model, and the same prompt can produce a slightly different flow on another run.

Write prompts that work

  • Name the columns. Column names stay private unless you share them, so "total value per month of occurred_at" works better than "total the value per month". Names you type in the request are matched to the dataset's columns.
  • Turn a rule into a condition. "Drop refunds (amount of 0 or less)" builds a filter; "drop refunds" leaves the assistant to guess which rows are refunds.
  • Choose the features for a model. "Predict churn from tenure, monthly_charges and support_calls" keeps an ID column out of the features.
  • Ask for one result at a time. Build the flow, then ask for the next change on the same canvas, or edit a setting by hand.
  • Answer its question. When a request is ambiguous, the assistant offers choices instead of guessing, for example which numeric column to total.
  • Review before you apply. The assistant checks types and wiring on placeholder rows, not on your values. Read every setting in the proposal, then choose Apply and save and Run.

Join two files and chart the result

Join the orders to the customers, total the amount per country, sort the countries from highest to lowest and show it as a bar chart

Left input
  1. Input
    File Input
    orders.csv
Right input
  1. Input
    File Input
    customers.csv
  1. Join
    Join
    on: customer_id · how: inner
  2. Transform
    Group By Aggregate
    country → sum(amount)
  3. Transform
    Sort Rows
    amount, descending
  4. Output
    Bar Chart
    x: country · y: amount

The assistant picked customer_id as the join key from the two files and built six nodes in 7 provider calls. The exported pandas code is one readable chain:

python
df_orders = pd.read_csv('orders.csv')
df_customers = pd.read_csv('customers.csv')
df_1 = (
    df_orders.merge(df_customers, on='customer_id')
    .groupby('country', dropna=False)
    .agg({'amount': 'sum'})
    .reset_index()
    .sort_values('amount', ascending=False)
)

The chart renders in the Ciaren run view; the export keeps the table it draws. Data: Customer segmentation.

Clean a sales file and total it per region

Drop internal_note, remove rows with no amount and refunds (amount of 0 or less), lowercase region and fill a missing region with Unknown, then total amount and count order_id per region, largest total first

  1. 1Input
    File Input
    sales.csv
  2. 2Clean
    Drop Columns
    internal_note
  3. 3Clean
    Filter by Expression
    amount > 0
  4. 4Clean
    String Transform
    region → lowercase
  5. 5Clean
    Fill Nulls
    region → Unknown
  6. 6Transform
    Group By Aggregate
    region → sum(amount), count(order_id)
  7. 7Transform
    Sort Rows
    amount, descending
  8. 8Output
    File Output
    CSV

The run returns north 330.5 from 2 orders, south 89.0 and Unknown 42.25. The missing amount and the refund drop out because a comparison with a missing value keeps no row. Compare it with the hand-built flow in Sales analysis.

Monthly totals with a rolling average

Parse occurred_at as a date, total value and count event_id per month, then add a 2-month rolling average of the monthly totals

  1. 1Input
    File Input
    events.csv
  2. 2Clean
    Parse Dates
    occurred_at
  3. 3Transform
    Extract Date Parts
    year, month
  4. 4Transform
    Group By Aggregate
    sum(value), count(event_id)
  5. 5Transform
    Rolling Aggregate
    mean, window 2
  6. 6Output
    File Output
    CSV

Three months come out: totals 24, 30 and 30 with rolling averages 24, 27 and 30. The same request in Spanish, "suma value por mes según occurred_at, agrega un promedio móvil de 2 meses y muéstralo en un gráfico de líneas", built the same steps plus a sort, a year-month label and a Line Chart. Data: Time-series aggregation.

Train and evaluate a regression model from two files

Join orders with customers on customer_id and train a regression model that predicts shipping_cost from distance_km and tenure_months, evaluated on a 20% test split

Left input
  1. Input
    File Input
    orders.csv
Right input
  1. Input
    File Input
    customers.csv
  1. Join
    Join
    on: customer_id · how: inner
  2. ML
    Train / Test Split
    20% test, seed 42
  3. ML
    Train Regressor
    random forest · shipping_cost
  4. ML
    Predict
    test rows
  5. ML
    Evaluate
    RMSE, MAE, R², MAPE

The export is a plain scikit-learn script: a train_test_split, a Pipeline with imputation and scaling, a RandomForestRegressor and the four metrics. It ran with only pandas and scikit-learn installed. The data is the shipping cost example; machine-learning nodes need the ML extension.

Cross-validate a classifier and rank its features

Predict churn from tenure, monthly_charges and support_calls with a random forest, use 5-fold cross validation and show which features matter most

  1. 1Input
    File Input
    customers.csv
  2. 2ML
    Classifier Model
    random forest · churn
  3. 3ML
    Cross-Validate
    5-fold
  4. 4ML
    Train Classifier
    3 features
  5. 5ML
    Feature Importance
    top 3

Classifier Model defines the random forest for Cross-Validate, and Train Classifier fits the same settings on all rows for Feature Importance. A Cross-Validate export rebuilds the model with Ciaren's estimator helper, so run that script where Ciaren is installed; see Cross-validate. Data: ML classification.

Every prompt we tested

Rows marked refined use a prompt that names its columns. The shorter prompt on the tutorial page ran too, but guessed some columns; see Write prompts that work.

PromptNodes the assistant builtCallsTutorial
Join the orders to the customers, total the amount per country, sort the countries from highest to lowest and show it as a bar chartFile Input ×2, Join, Group By Aggregate, Sort Rows, Bar Chart7Customer segmentation
Total the amount per region and month of ordered_at and show it as a line chartFile Input, Parse Dates, Extract Date Parts, Group By Aggregate, Line Chart8Sales analysis
Drop internal_note, remove rows with no amount and refunds (amount of 0 or less), lowercase region and fill a missing region with Unknown, then total amount and count order_id per region, largest total first (refined)File Input, Drop Columns, Filter by Expression, String Transform, Fill Nulls, Group By Aggregate, Sort Rows, File Output8Sales analysis
total each customer's orders, join them to the customers file and bin the totals into tiersFile Input ×2, Group By Aggregate, Join, Bin Column, File Output9Customer segmentation
strip and lowercase the text columns, turn age into an integer, drop rows with no name or age, remove duplicate emails and keep ages from 0 to 120File Input, String Transform ×4, Change Types, Drop Nulls, Remove Duplicates, Filter by Expression, File Output5Data quality
Fill missing income with the median, one-hot encode region, scale age, income and score, and reduce age and score to one component (refined)File Input, Fill Nulls, Encode Categories, Scale Features, Reduce Dimensions, File Output4Feature engineering
Parse occurred_at as a date, total value and count event_id per month, then add a 2-month rolling average of the monthly totals (refined)File Input, Parse Dates, Extract Date Parts, Group By Aggregate, Rolling Aggregate, File Output7Time-series aggregation
suma value por mes según occurred_at, agrega un promedio móvil de 2 meses y muéstralo en un gráfico de líneasFile Input, Parse Dates, Extract Date Parts ×2, Group By Aggregate, Sort Rows, Rolling Aggregate, Combine Columns, Line Chart12Time-series aggregation
train a classifier on the churn column with a train/test split and evaluate it on the test rowsFile Input, Train / Test Split, Train Classifier, Predict, Evaluate7ML classification
Predict churn from tenure, monthly_charges and support_calls with a random forest, use 5-fold cross validation and show which features matter mostFile Input, Classifier Model, Cross-Validate, Train Classifier, Feature Importance6ML classification
Join orders with customers on customer_id and train a regression model that predicts shipping_cost from distance_km and tenure_months, evaluated on a 20% test splitFile Input ×2, Join, Train / Test Split, Train Regressor, Predict, Evaluate8Shipping cost example
trim the spaces in the email column and lowercase it, then write a CSVFile Input, String Transform ×2, File Output4Clean messy text
create an email column from primary_email, falling back to backup_emailFile Input, Coalesce Columns, File Output4Coalesce fallback values
write this dataset as a Parquet fileFile Input (Excel), File Output (Parquet)5Convert Excel to Parquet
fill missing numbers with the column median and missing text with UnknownFile Input, Fill Nulls ×2, File Output4Fill missing values
keep orders where amount is at least 100 and status is paidFile Input, Filter by Expression, File Output4Filter paid orders
split the tags column on semicolons into one row per tagFile Input, Split to Rows, File Output4One row per tag
pivot the sales so each region is a row and each month is a columnFile Input, Pivot Table, File Output4Pivot a table
keep one row per email, the one with the latest updated_atFile Input, Sort Rows, Remove Duplicates, File Output5Remove duplicate rows
split the location column on | into region and cityFile Input, Split Column, File Output6Split a column

Two prompts asked a question first. The customer segmentation prompt asked which order measure to total per customer, and the data quality prompt asked which column holds the email addresses.

Next steps