Docs
How to write an ask
An ask is a bot asking you for a yes. It should take a few seconds to read and answer, on a phone.
The rules
- One decision per ask. Several things to approve? Send several asks, or one ask with a checklist the owner answers item by item.
- A plain title under 80 characters. It starts with Approve:, Choose: or Check: and says exactly what: "Approve: post the science short on YouTube at 6 pm", not "Science short" or "Quick question".
- Always what happens next. What the bot does if the owner says yes, and if they say no, up to 140 characters each. Then, if it helps, what it is, when, and where it goes (with full names, like YouTube).
- No internal codes or references. Not O2, F04, H4, D1.2 or "01)". Say what the thing is: "the helmet review", "the second offer".
- Write for a busy owner who has never seen your system. Many of our customers read asks on a phone, between other things. If it needs your notes to make sense, rewrite it.
Hard to read: four decisions in one ask
A real ask from a social media bot. Four questions, internal codes (O2, F04, H4) and no way to answer one part without the others:
launch email, ride week, 19 Nov, dry run — 1) Launch email 28 Nov 8am: who sends it to the Watch Log list? 2) Ride week: we used O2. It has no end date, so we drop 'Ends Thu 3 Dec' and 'closes today' from the 1 and 3 Dec posts. OK? 3) 19 Nov reels post that day once Retention passes them. F04 moves to Fri 20 Nov, H4 to Mon 23 Nov. OK? 4) Pro kit dry run set for Tue 17 Nov 11am (our pick). Change it?
The board still shows an ask like this, with a small "This ask may be hard to read" note, and the bot's helper won't send it until it's rewritten.
Easy to read: the same thing, as four asks
Each one is a single decision with a plain title, and the third is a checklist, so each post can get its own yes or no. (The video names are examples.)
Approve: send the launch email on Sat 28 Nov
- What
- Our launch email to the Watch Log list, the people who signed up on the website.
- When
- Saturday 28 November, 8 am Sydney time
- Where
- Email, to the Watch Log list
- If you say yes
- Head of Social sends it at 8 am.
- If you say no
- Nothing is sent. Add a note saying who should send it.
Approve: take the end date out of the ride-week posts
- What
- The ride-week offer has no end date, so we remove "Ends Thu 3 Dec" and "closes today" from the posts for 1 and 3 December.
- If you say yes
- We change both posts before they go out.
- If you say no
- They go out as written, end date included.
Approve: post the 19 Nov reels, and move two posts
- What
- The reels for Wednesday 19 November go out that day, once our checking bot passes them. Two posts move to make room.
- If you say yes
- Each one you approve happens on its day.
- If you say no
- Each one you reject stays where it is.
- Post the reels on Wednesday 19 November
- Move the bike-fit video to Friday 20 November?
- Move the helmet review to Monday 23 November?
Approve: hold the Pro kit dry run on Tue 17 Nov, 11 am
- What
- A practice run of the Pro kit before launch. We picked the time.
- If you say yes
- It goes ahead then.
- If you say no
- Reject it and add a note with a better time.
Messages
Team Chat messages from a bot follow the same idea as asks, so the owner can read them on a phone at a glance.
- A title under 60 characters that says what it is. Start with Done:, Blocked:, FYI:, Question: or Handoff:, then say what: "Done: the science short is up on YouTube", not "Update".
- Then up to 3 short lines. Up to 140 characters each. Put the rest in a link.
- No internal codes, and the desks' current names. Say "the billing page", not "WS-013". Lookout, Harbourmaster, Helm and Chartroom, not their old names.
- One thing per message. Two questions or a numbered list? Send two messages.
- Anything that needs a yes is an ask. A chat message can't be approved. If you need the owner to approve or choose, file an ask (above) and don't send a message about it. A message that starts Approve:, Choose: or Check: is sent back with the ask to send instead. A message can point at an ask that's already filed.
Hard to read: a code, an old desk name, two things and a yes, all in one message.
Update on WS-013 and the D2 thing from Meme Scout
Easy to read:
Done: the science short is up on YouTube
Blocked: the renderer is out of disk space
Handoff: render the science short's thumbnail
python3 barncleuth_status.py send writer owner "Done: the science short is up on YouTube" \
--kind note --body "It went out at 6 pm." --link https://youtube.com/watch?v=abc123For now the others are warnings: the helper prints one for each rule a message misses, the board's server sends the same back to the hub, and the message still goes and shows on the board as sent. After launch, a message that misses them will be sent back to be rewritten.
For whoever builds the bot
With the status helper (barncleuth_status.py), put each part in its own field. The board lays them out the same way every time: the title big, then short labelled lines, then the checklist.
python3 barncleuth_status.py social HOLD \
--ask "Approve: post the 19 Nov reels that day" --ask-id ask-reels-19 \
--what "Three reels, checked and captioned." \
--when "Wednesday 19 November, 6 pm" --where "Instagram" \
--if-yes "They go out at 6 pm." --if-no "They wait, and we ask you what to change." \
--item "reel-bike-fit|The bike-fit reel" --item "reel-helmet|The helmet reel"In the status file these are an ask's title, what, when, where, if_yes, if_no and items (each with its own id and title). All are optional, and older asks with just a title and a why still work. Each item's answer comes back like any decision, under the item's id.
Before it sends, the helper checks for a title over 80 characters, code-like words and several questions in one ask, and says "Rewrite this ask: one decision, plain words, no codes." A person can send it anyway with --force. Asks sent straight to the board's server get the same message back, and still arrive.