DocsAutomate
Automations
Rules that act on your ideas: "when this happens to an idea, do that".
On this page
- An idea gets #sunday
- Your rule fires
- A calendar event for tomorrow
Rules run on the server, so they fire however the change happened: on your phone, from an assistant, even with the app closed.
Start from a template
Not sure where to begin? Profile → Automations → Templates has ready-made rules. Pick one, rename its tag if you like (#podcast, #standup…), then Add it, or step through each rule in the editor to change anything first. A template can be one rule or a small recipe of linked rules, like Podcast prep: on #podcast Gemini writes five interview questions and adds #listen, and #listen books a Saturday slot.
All templates
| Category | Template | What it does |
|---|---|---|
| Reminders | Weekend plans | #sunday → an all-day event on the coming Sunday |
| Reminders | Daily standup | #standup → 15 minutes at 9:00 the same day |
| AI helpers | Idea → plan | #plan → a note with three next steps |
| AI helpers | Expand a thought | #expand → a paragraph and three angles |
| AI helpers | Reading list | #read → a note on why it's worth reading, plus #reading |
| AI helpers | Gift ideas | #gift → a price range and where to buy, plus #shopping |
| Recipes | Podcast prep | #podcast → interview questions and #listen; #listen → a Saturday slot |
| Recipes | Content pipeline | #post → a LinkedIn draft and Tuesday 10:00 booked to post it |
| Recipes | Build with Grok Bot | #build → your coding agent, which reports back with #shipped |
| Tidy up | Archive what's done | #done → removes #todo and archives |
| Tidy up | Forgotten ideas | Not opened for 90 days → archive |
| Tidy up | Stale to-dos | A #todo not updated for 30 days → #stale |
| Work tools | Bug to Jira | #bug → a Jira Bug with repro steps |
| Work tools | Feature to Jira | #feature → a Jira Story with acceptance criteria |
| Work tools | Send to Slack or Zapier | #share → your webhook |
Templates with Needs Google Calendar, Needs Jira, Needs Grok Bot or Needs a webhook URL walk you through that setup in the editor. A card shows Added once you have its rules.
Create a rule
Open Profile → Automations and select New rule.
Under When, pick a trigger. Under Do this, pick an action and fill it in.
Check the sentence under the form, like On #podcast → Gemini writes a note: “suggest three guests”, then select Save rule.

The rule editor reads your rule back as a sentence.
Each rule has an On/Off switch, Edit and Delete (with Undo). How many rules you can have depends on your plan (10 on Free, 50 on Pro and Team).
Triggers
| Trigger | Fires when… |
|---|---|
| Gets a tag | an idea gets the tag, in any way (typed, by an assistant, a rule or a merge) |
| Since created | a set time has passed since the idea was created |
| Since updated | the idea hasn't changed for a set time |
| Since opened | the idea hasn't been opened for a set time |
| Archived | the idea is archived (choose by Me, Assistants, Automations) |
Trigger details
- Gets a tag fires once per idea, including new ideas saved with the tag (offline ones too, when they sync). Removing and re-adding the tag doesn't fire it again. Archived and trashed ideas don't fire tag rules.
- Time triggers take 1 hour to 1 year (a month is 30 days) and are checked every 10 minutes. Since created fires once per idea; Since updated and Since opened fire once per quiet spell.
- Since updated: edits, tag changes and adding or editing a note count; notes that automations write, and archiving, don't. Since opened: opening it, or an assistant reading it, counts; never-opened ideas count from creation.
- Time rules skip archived ideas unless Include archived ideas is on. By default they act only on ideas that come due after you save; Also apply to ideas already past this catches the rest too. That moment resets when you change the trigger, tag, time or these options, or turn the rule back on.
- Archived fires every time; all three Archived by options are on by default. It can't use the Archive action.
- Every trigger except Gets a tag can be limited with Only ideas tagged (one tag).
Actions
| Action | What it does |
|---|---|
| Calendar | Adds an event to your Google Calendar |
| AI note | Gemini follows your instruction and adds a note |
| Add tags / Remove tags | Up to 10 tags; Add tags can also set their color |
| Archive | Moves the idea to the archive |
| Webhook | Sends the idea to your HTTPS URL, signed |
| Dispatch Grok Bot | Hands the idea to a coding agent, after you approve. See Grok Bot dispatch |
| Create Jira issue | Gemini writes the idea up as a Jira issue, after you approve. See Jira issues |
Dispatch Grok Bot and Create Jira issue ask first. Check Auto-accept requests in the rule to skip the prompt and send right away.
Tags a rule adds can fire other rules: On #podcast → Add #listen, then On #listen → Create a calendar event….
Calendar
Connect first: on the Google Calendar card at the top of Automations, select Connect and allow access (calendar events only). It then shows Connected as your address; Disconnect removes it.
- Day: The same day, The next day, On the next… weekday (a week later if it fires on that weekday), or A few days later (1 to 365).
- Time: All day, or At a set time with Starts at and Lasts (15 min to 8 hours), in your device's time zone when you saved the rule.
- The title is the idea's first line (up to 120 characters); the description holds the idea, its tags and a link.
- The idea gets a note like "📅 Added to Google Calendar for Sun 4 Oct at 09:00" with Open the event.
AI note, tags and archive
- AI note: under Ask Gemini to, write up to 1,000 characters ("outline 3 next steps"). Gemini reads the idea and its tags; the note is signed Gemini.
- Add tags / Remove tags: adding a tag that's there, or removing one that isn't, is Skipped with "No change". Color sets the added tags' color when you save; Keep current leaves it.
- Archive: marks the idea as archived by an automation, so an Archived rule limited to Automations fires next.
Webhooks
Paste an https:// URL (public addresses only). The editor creates a Signing secret: copy it into the receiving service. Any 2xx answer within 10 seconds counts as success; redirects fail. Failed sends aren't retried automatically.
Request headers and body
| Header | Value |
|---|---|
Content-Type |
application/json |
User-Agent |
IdeaBucket-Automations/1 |
x-ideabucket-event |
The event name, the same as event in the body |
x-ideabucket-signature |
sha256= followed by the hex HMAC-SHA256 of the body |
{
"event": "idea.tagged",
"tag": "podcast",
"idea": {
"id": "6f1c2a9e-3b7d-4e8a-9c41-2d5f8b7a1e03",
"content": "Interview a beekeeper about urban hives",
"tags": ["podcast", "garden"],
"created_at": "2026-09-28T08:14:03.512+00:00",
"archived_at": null
},
"automation": {
"id": "b2e4d6f8-1a3c-4e5f-8a7b-9c0d1e2f3a4b",
"tag": "podcast",
"action": "webhook",
"trigger": "tag",
"after_minutes": null
},
"run_id": "0d9e8f7a-6b5c-4d3e-2f1a-0b9c8d7e6f5a",
"sent_at": "2026-09-28T08:14:05.201Z"
}| Field | Meaning |
|---|---|
event |
idea.tagged, idea.time_since_created, idea.time_since_updated, idea.time_since_viewed or idea.archived |
tag |
The watched tag for Gets a tag rules; otherwise the Only ideas tagged tag, or null |
idea |
Id, full text, tags, creation time, archive time (null if not archived) |
automation |
The rule: id, tag, action, trigger (tag, created, updated, viewed or archived), and the time in minutes for time rules |
run_id |
The run's id. It stays the same on Retry, so use it to ignore duplicates |
sent_at |
When this request was sent |
Verify the signature
Every request carries x-ideabucket-signature: sha256=<hex>: an HMAC-SHA256 of the raw body, keyed with your rule's Signing secret as text. Check it before parsing the JSON.
Signing rules
- Signed: the raw request body, exactly as received, as UTF-8 bytes. No timestamp is signed;
sent_atsays when it was sent. - Key: the Signing secret as UTF-8 text. Don't hex-decode it, even though it looks like hex.
- Output: lowercase hex, 64 characters. Compare in constant time.
- Parsing and re-serialising the JSON changes the bytes, so verify first.
Node.js example
Uses only built-in modules (Node 18 or later). With Express, use express.raw({ type: 'application/json' }) on the route and pass req.body to isValid.
import { createHmac, timingSafeEqual } from 'node:crypto'
import { createServer } from 'node:http'
const SECRET = process.env.IDEABUCKET_SIGNING_SECRET // the rule's Signing secret
function isValid(rawBody, header) {
const expected = 'sha256=' + createHmac('sha256', SECRET).update(rawBody).digest('hex')
const given = Buffer.from(header ?? '', 'utf8')
const wanted = Buffer.from(expected, 'utf8')
return given.length === wanted.length && timingSafeEqual(given, wanted)
}
createServer((req, res) => {
const chunks = []
req.on('data', chunk => chunks.push(chunk))
req.on('end', () => {
const rawBody = Buffer.concat(chunks)
if (!isValid(rawBody, req.headers['x-ideabucket-signature'])) {
res.writeHead(401).end()
return
}
const payload = JSON.parse(rawBody.toString('utf8'))
console.log(payload.event, payload.idea.content)
res.writeHead(204).end()
})
}).listen(3000)Web Crypto example (Workers, Deno, Bun)
async function isValid(secret, rawBody, header) {
const match = /^sha256=([0-9a-f]{64})$/.exec(header ?? '')
if (!match) return false
const enc = new TextEncoder()
const key = await crypto.subtle.importKey(
'raw',
enc.encode(secret),
{ name: 'HMAC', hash: 'SHA-256' },
false,
['verify'],
)
const signature = new Uint8Array(match[1].match(/../g).map(h => parseInt(h, 16)))
// crypto.subtle.verify compares in constant time.
return crypto.subtle.verify('HMAC', key, signature, enc.encode(rawBody))
}
export default {
async fetch(request, env) {
const rawBody = await request.text()
const ok = await isValid(
env.IDEABUCKET_SIGNING_SECRET,
rawBody,
request.headers.get('x-ideabucket-signature'),
)
if (!ok) return new Response('Bad signature', { status: 401 })
const payload = JSON.parse(rawBody)
// … do something with payload.idea
return new Response(null, { status: 204 })
},
}Recent runs
Every time a rule fires, it makes a run. Recent runs shows your latest 20, waiting ones first.

| Status | Meaning |
|---|---|
| Waiting | A Grok Bot dispatch waiting for Send or Not now |
| Queued / Running | About to start / in progress |
| Done | It worked (calendar runs show Open event) |
| Failed | Shows the reason and Retry |
| Skipped | Nothing to do; the reason is shown |
Why a run is skipped
- Idea is in the trash
- Rule is turned off: the rule was off by the time the run started.
- Already archived
- No change: the tags were already as the rule wanted.
- Not sent: you chose Not now on a Grok Bot dispatch.
- Expired: nobody answered a Grok Bot dispatch within 14 days.
Retry runs a failed run again straight away and counts towards your hourly limits.
Limits
| Limit | Value |
|---|---|
| Rules | 10 on Free, 50 on Pro and Team. See Plans |
| Runs | 300 per hour, across all rules |
| AI notes and Jira issues | 20 a day on Free, 100 an hour on Pro and Team (also count towards the runs) |
| Tags per Add tags / Remove tags rule | 10 |
| AI note instruction | 1,000 characters |
| Time triggers | 1 hour to 1 year |
| Webhook and Grok Bot answer time | 10 seconds |
What counts
A run counts when it reaches its action, even if it fails there. Skipped runs and Grok Bot runs waiting for approval don't count. The Grok Bot Test button counts as one run.
Failure messages
Most failures are temporary: select Retry on the run. The others:
All failure messages
| Message | What it means and what to do |
|---|---|
| Timed out | Didn't finish within 15 minutes. Retry. |
| Never started | Waited in the queue over an hour, usually a temporary server problem. Retry. |
| Hourly automation limit reached | 300 runs this hour. Retry after the hour. |
| Hourly AI note limit reached | Your plan's AI note allowance is used up (AI notes and Jira issues share it). Retry once it resets; Settings → Usage says when. |
| Couldn't check the automation limit | A temporary server problem. Retry. |
| The rule or the idea no longer exists | It was deleted. Nothing to retry. |
| Something went wrong running this automation | Unexpected error. Retry; if it keeps failing, check the rule or recreate it. |
| The run finished but its result couldn't be saved | The action probably happened (check the idea or calendar). Retry only if it didn't. |
| The idea kept changing; try again | Tags changed several times during the update. Retry. |
| Google Calendar isn't connected | Connect it at the top of Automations, then Retry. |
| Google Calendar access was revoked. Reconnect it in Automations | Google no longer accepts the connection. Disconnect, Connect, then Retry. |
| Google Calendar refused the event. Reconnect it in Automations | Reconnect as above. |
| Google Calendar didn't answer in time, Couldn't reach Google Calendar, Google didn't answer in time, Couldn't reach Google | A temporary problem reaching Google. Retry. |
| Google sign-in failed (…) or Google Calendar answered … | Google returned an error. Retry later, or reconnect if it persists. |
| Gemini didn't answer within 25 seconds, Couldn't reach Gemini | Temporary. Retry. |
| Gemini gave an empty answer | Retry, or reword the instruction. |
| Could not save the note | Retry. |
| The webhook didn't answer within 10 seconds | Answer 2xx first, do slow work in the background. |
| Couldn't reach the webhook | DNS, refused connection or TLS problem. Check the URL. |
| The webhook answered … | A non-2xx status. 3xx: use the final URL. 401: often a failed signature check. |
| Webhooks must use https, The webhook URL is invalid, The webhook URL can't contain a password | Fix the URL. |
| Webhooks can't reach local or private addresses | Use a public HTTPS endpoint. |
| Grok Bot rejected the key, The routine is turned off in Grok Bot, Add the Grok Bot key in this rule | See Grok Bot troubleshooting. |