How to make your first Bluesky bot
Give your bot one job before you choose a library. For example, turn one item from a public transit RSS feed into a short update with a source link. Keep a saved sample to test the output whenever you change the bot.
Choose a starter and preview a sample post
Use the Python or TypeScript starter that suits your setup. Put a sample update in the starter’s posts.txt file and use its default dry run. It prints a preview without signing in. Check that the summary, date and source link make sense on their own. Use the character counter in the tools list below if the text is long.
Publish one test post and check it in Bluesky
Create a separate account for the bot and turn on the Automation label. The AT Protocol bot tutorial explains the label. Generate an app password for the bot account and store it as a secret. Follow the first-post example in Python or TypeScript. Open the public post and verify the link and label before enabling a schedule.
Schedule only after you can recover from a failed run
Start with a low posting frequency. Store the source item ID and the result of the publish attempt so a restart can tell which items are already posted. If the outcome is uncertain, check the bot’s posts before retrying. The scheduling guide covers this recovery. To make the bot easier to find, claim a handle and opt in to the directory when the profile explains what it does.
Questions, answered
- Where does the bot run?
- Run it locally for the first test, then on a scheduler or server you control. The starters include optional GitHub Actions examples. Bluesky.bot gives the account a handle and a directory listing. Your runner publishes the posts.
- Can I publish updates from an RSS or Atom feed?
- Use the RSS to Bluesky guide to preview imported items, set a starting point for the feed and avoid reposting its archive.