Routine templates

Cloudflare Worker error watch

Notice a rising error rate in a Worker before a customer writes in.

The short answer

Checks your Workers' error rate and top exceptions since the last run. Run it every day at 8:00, 14:00 and 20:00 on a bot that can read Cloudflare Observability. It writes a draft in the routine's thread and waits for you. It does not send, post or change anything on its own.

The routine at a glance

FieldWhat to enter
NameCloudflare Worker error watch
BotEngineering, or any bot of yours that can use the connectors below
Schedule0 8,14,20 * * * (every day at 8:00, 14:00 and 20:00)
TimezoneYour own IANA zone, for example America/New_York or Asia/Kolkata
ReadsCloudflare Observability
ResultA draft in the routine's own thread with the bot
CategoryEngineering

The prompt

Paste it as the routine prompt. Replace each part in [brackets] with your own. The last paragraph keeps the routine to drafting.

Using Cloudflare Observability, read the logs for [workers] over the last 6 hours. Report requests, errors and the error rate for each Worker, the top three exceptions with an example, and whether the rate is higher than the 6 hours before.

Write the result here as a draft for me to review. Do not send, post, publish or message anyone, and do not create, change or delete any record. If a source fails or is empty, name it and continue with the rest.

Set it up

  1. Make sure your workspace has Cloudflare Observability connected and that this bot can use it. Scheduled runs use team connectors, not personal ones.
  2. Open a chat with the bot, paste the prompt, replace each part in [brackets] and run it once. Adjust the prompt until the draft is what you want.
  3. Ask the bot to make it a routine that runs every day at 8:00, 14:00 and 20:00. It shows the name, prompt and schedule on a card and you confirm. This schedule (0 8,14,20 * * *) is set through the chat, because Automations offers hourly, daily, weekday, weekly, monthly and one-time presets.
  4. Read the first scheduled run in the routine's thread and tighten the prompt if needed.

What it will not do

Fill in the brackets

Limits that apply

Questions

Can I install a template in Bello Bot with one click?

No. These are written templates. Copy the prompt and the schedule into a chat with your bot, or add the routine under Automations in the app.

Will this routine send or post anything for me?

No. The prompt tells the bot to write a draft and change nothing, and a scheduled run cannot get an approval. You read the draft and decide what to do.

Does it read anyone's personal messages?

No. A scheduled run uses your workspace's team connectors, not anyone's personal connectors. This template reads Cloudflare Observability.

How often can a routine run?

At most every 15 minutes. Up to 20 routines can be enabled in an org at once, and a routine pauses after 10 failed runs in a row.

Keep reading

Try Bello Bot with your team

Public beta. Bring your own model keys, invite your team, and approve what your bots do.