Docs menu

Using Pepperbot

Routines

A routine is a prompt a bot runs on its own: on a schedule, when something changes, or when another service calls it.

Ask for one in chat

The quickest way is to ask:

  • “Every weekday at 8am, summarize my open GitHub pull requests.”
  • “Remind me in 20 minutes to call Dana.”
  • “Every Monday, check our competitors’ pricing pages and tell me what changed.”

The bot creates the routine and reports each run back in the same chat.

Create or edit one yourself

Click the bot’s name at the top of its chat to open the bot panel. In Routines, choose New routine if the list is empty, or + (labeled Create routine) if it already has routines. To edit a routine, select it from the list.

  1. Name the routine and write the Instruction: what it should do each time it runs.
  2. Under When to run, choose Add trigger.
  3. Choose Save.

Under Advanced you can give a routine its own Model and Thinking level, for example a cheaper model for a simple daily check.

Triggers

On a schedule

Every hour, every day, weekdays, every week, every month, or a custom interval. Advanced… accepts a cron expression. Times use your timezone, set in Settings → General.

When something changes

The bot checks something at a set interval (Check every, from 5 minutes to a day) and runs only when it changed. What to watch can be files or folders on the computer, a command’s output, or a tool from a connected app. A tool’s arguments can hold a date that moves with the calendar: ask the bot to watch, say, what is due before {{today+2d}}. Turn on Post “No changes” in chat if you want a note every time. A watch can’t be combined with a schedule.

Webhook

Gives you a URL and key. Any service that can send a POST request can start the routine. A service that signs its requests with webhook-id, webhook-timestamp and webhook-signature headers can use the key as its signing secret, so the key is never sent.

Git event

Gives you a URL to add as a GitHub webhook, so pushes, issues and pull requests can start the routine.

A routine run started by a webhook follows your approval mode and Always allow list. Since outside text could steer it, tools that change something are checked even if they never ask in your own chats. Nobody may be watching, so an approval card it posts expires after 30 minutes and the action isn’t done. Always allow on a tool such as shell or the browser lets outside text use it freely.

Test, pause and review

  • Test run runs a saved routine now.
  • Turn off Active to pause a routine without deleting it.
  • Run history shows each past run and its result.
  • A running routine shows Running in the list, with Stop.

A recurring timer skips new runs while an earlier run from that timer is still active. If it is waiting for your input, answer in the chat where the question appeared to continue that run.