/
/
Clear Todoist tasks for orders that are already done
For operations teams who want to find open Todoist tasks tied to WooCommerce orders that no longer need work, by asking their AI assistant.
On this page
Connector
Connect Todoist, pick your AI tool and paste the prompt.
The problem
Tasks outlive the orders they were about
Open Todoist tasks keep pointing at WooCommerce orders that have already shipped or been refunded. Finding them means opening every order in the store admin, so stale tasks bury the ones that still need work.
Without PopdockAI
- Scan open tasks for order numbers
- Open each order in WooCommerce
- Note which are completed, refunded or cancelled
- Leave stale tasks in place because it takes too long
With PopdockAI
- Order numbers are pulled from the open tasks
- Each distinct order is checked in WooCommerce
- Tasks with finished orders are listed once with their status
- Tasks whose order is not found are listed, not guessed
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Find open Todoist tasks that refer to a WooCommerce order that no longer needs work, scanning up to `{max-tasks}` open tasks (default 50) and treating orders with status `{closed-statuses}` (default completed, refunded, cancelled) as finished.
**Step 1: Collect open tasks (todoist server)**
Call `todoist-get-tasks` with `is-completed` false and `content.contains` set to `order`, with `max-records` set to `{max-tasks}`. Pull the order number from each task's `content` (a number after "order", "#" or "WC-"). Ignore tasks with no order number.
**Step 2: Check each order (woocommerce server)**
For each distinct order number call `woocommerce-get-order` with `order-number`. Keep `status` and `total`. If an order is not found, mark the task as "order not found".
**Step 3: Report**
List only tasks whose order status is in `{closed-statuses}`: task id, task content, due date, order number, order status. Add a second short list of tasks whose order was not found. Count the tasks checked.
**Rules & Guidelines:**
* Read-only. Do not close, update or delete any task and do not change any order. Never call `todoist-close-task`, `todoist-update-task`, `todoist-delete-task`, `woocommerce-update-order` or `woocommerce-add-refund`.
* Todoist tasks are on the todoist server and orders on the woocommerce server.
**Validation:**
* If a task names more than one order number, check each and report the task once.
* If no stale tasks are found, say so and give the count checked.Who it's for
One answer, three teams that use it
Operations managers
Keep the task list honest
See which tasks refer to orders that are already finished, so the list shows only work still to do.
Which of my open Todoist tasks mention WooCommerce orders that are already completed or refunded?
Order fulfilment staff
Stop chasing shipped orders
Find the tasks you can clear because the order has shipped, without opening each order in the store admin.
Scan my 30 latest Todoist tasks about orders and list the ones whose WooCommerce order is completed.
Store owners
Spot cancelled orders still on the task list
Check that nobody is still working on orders that were cancelled or refunded, using the task list you already keep.
Check open Todoist tasks that mention orders and show any WooCommerce orders that are cancelled or refunded.
How it works
What PopdockAI does when you ask
You choose how many tasks to scan and what counts as finished. Your AI assistant checks each order and only reports, so no task or order is changed.
Ask
You say how many tasks to scan and which order statuses count as finished.
Collect
It reads open Todoist tasks that mention an order and takes the order number from each.
Check
It looks each order number up in WooCommerce and notes the status.
Report
You get tasks whose order is finished, plus tasks whose order was not found.
What PopdockAI provides
The tools behind the answer
Ready made tools for Todoist and one secure connection to your AI tool. No code, no exports.
todoist-get-tasks
woocommerce-get-order
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
Open tasks that still need work stand out
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
