Skip to content

Stateful automations

Automations that remember what happened last time

Most useful automations need a memory: which items they already handled, what the price was yesterday, how many checks have failed in a row. Every ClickRuntime automation keeps its own state between runs, so it acts on what changed.

Works with and other AI assistants.

ChatGPTClickRuntime connected
Create a ClickRuntime automation: every 15 minutes, post new GitHub issues labelled 'bug' to #triage. Don't repeat ones you've already posted.
I'll check every 15 minutes, remember the newest issue I've posted, and post only issues that come after it.
New bugs → #triageLive
When
Every 15 minutes
Uses
GitHub, Slack
AllowReview
Runsapp.clickruntime.com
New bugs → #triage10:45Succeeded · 1.6s
Last run10:45 · 2 new issues posted

Details

What "stateful" means here

A stateless job does the same thing every time: fetch, send. A stateful job keeps a note between runs and uses it next time. That note is what lets it skip duplicates, stay quiet when nothing changed, and count things up over hours or days.

Each ClickRuntime automation has its own storage for this. It keeps values (any JSON, such as the last id or price) until they're cleared, and counters grouped by minute, hour, day, week or month that expire on their own. It's available on every plan, including on the free plan.

When you need ClickRuntime rather than a built-in task

Scheduled tasks and reminders built into ChatGPT, Claude and other assistants start from nothing each time they run. They can't reliably know what they told you yesterday. If a job needs to remember anything from its last run, it belongs in ClickRuntime.

Patterns that need state

  • Only new items: remember the ids or last timestamp handled, so new orders, issues, emails or feed entries are processed once.
  • Alert only on change: remember the last value, and notify only when a price, status or count moves.
  • Thresholds: count consecutive failures or events and alert after the third, not the first.
  • Cooldowns: remember when the last alert went out and send at most one an hour.
  • Resume where it left off: keep a cursor so a long sync picks up from the last page.
  • Collect, then send: store events as they arrive and send one digest on a schedule.
  • Trends: count sign-ups or errors per day and compare this week with last week.
  • Recoveries: remember that something was down, so you also hear when it comes back.

You describe the job, the assistant adds the memory

You don't need to ask for state. Say "only tell me when it changes" or "don't repeat ones you've posted", and the assistant writes the automation to keep what it needs. The summary says what it remembers. On the automation page, under Advanced, Clear live state lets you start fresh at any time.

Try asking

Prompts to start with

Paste one of these into a chat with ClickRuntime connected.
  • Create a ClickRuntime automation: every hour, check this product page and email me only when the price drops below the lowest price you've seen.

  • Create a ClickRuntime automation: every 5 minutes, check our /health endpoint and Slack #oncall after 3 failures in a row, then once more when it recovers.

  • Create a ClickRuntime automation: when a Stripe payment fails, count it, and email me if more than 5 fail in one day.

  • Create a ClickRuntime automation: every Monday at 9, email me this week's sign-ups compared with last week's.

Apps

Works with the apps you use

Connect an app once and every automation in your workspace can use it. If it has an API, a webhook or a web page, it works.
  • Slack
  • Google Calendar
  • Shopify
  • Notion
  • Telegram
  • Asana
  • Dropbox
  • Calendly
  • WordPress
  • QuickBooks
  • Bitbucket
  • Evernote
  • Square
  • Wix
  • Mailgun
  • Sentry
  • MySQL
  • Firebase
  • Cloudflare
  • Instagram
  • Spotify
  • Miro
  • Substack
  • Product Hunt
  • Pinterest
  • Etsy
  • Wise
  • Gusto
  • RSS feeds
  • Google Sheets
  • Stripe
  • Typeform
  • Airtable
  • Jira
  • Mailchimp
  • Discord
  • Zendesk
  • WhatsApp
  • Google Docs
  • Figma
  • Box
  • WooCommerce
  • Squarespace
  • Brevo
  • Datadog
  • MongoDB
  • Vercel
  • X
  • YouTube
  • Google Analytics
  • Confluence
  • Ghost
  • Mastodon
  • TikTok
  • eBay
  • Coinbase
  • Okta
  • Gmail
  • GitHub
  • HubSpot
  • Google Drive
  • Trello
  • Zoom
  • Linear
  • Intercom
  • Xero
  • GitLab
  • Todoist
  • PayPal
  • BigCommerce
  • Webflow
  • PagerDuty
  • PostgreSQL
  • Supabase
  • Netlify
  • Facebook
  • Reddit
  • Google Ads
  • Bitly
  • Medium
  • Bluesky
  • Twitch
  • Revolut
  • Zoho
  • Auth0
View all apps

FAQ

Questions about stateful automations

What can an automation remember?
Values of any JSON type, such as ids, timestamps, prices or small lists, each up to 1 MB, and time-bucketed counters. Values stay until you clear state or delete the automation; counters expire after the number of days the script sets.
Is state shared between automations?
No. Each automation has its own state, and no other automation or workspace can read it.
Can I reset what it remembers?
Yes. On the automation page, under Advanced, Clear live state erases everything, and the next run starts fresh.
Can I store API keys in state?
No. Keys and tokens belong in secrets, saved in the ClickRuntime dashboard. State is for ordinary values.
Is state a database?
No. It's meant for small notes between runs. For large data, the automation can write to a sheet, a database or another service you use.

Set up your first automation in ChatGPT or Claude

Free plan. No credit card.