Developer Getting Started
Welcome to OpenAutomate bot development! This guide will help you create your first automation bot using our cookiecutter template - the easiest way to get started.Prerequisites
Before you start developing, ensure you have:- Python 3.11+: Download from python.org
- Cookiecutter: Install with
pip install cookiecutter
- Code Editor: VS Code, PyCharm, or your preferred editor
- OpenAutomate Account: Access to the cloud orchestrator
Step 1: Create Your First Bot
The fastest way to start is using our bot template:Generate from Template
Answer the Prompts
Navigate to Your New Project
Step 2: Install Dependencies
Step 3: Edit Your Bot
Openbot.py
and find the execute
method. This is where your automation logic goes:
Step 4: Test Your Bot
Run your bot locally to test it:- Log messages in the console
- Files created in
Documents/openautomate-bot/YourBotName/
What You Get Automatically
ποΈ Automatic Folders
The bot creates folders for your files inDocuments/openautomate-bot/YourBot/
:
input/
- Put files to process hereoutput/
- Bot saves results heretemp/
- Temporary filesscreenshots/
- Screenshots
π Secure Assets
Get sensitive data safely:π Easy Logging
π Status Updates
Basic Examples
Simple File Processor
Check the Examples Folder
Your generated bot includes complete examples:examples/simple_web_scraper.py
- Web scraping exampleexamples/asset_demo.py
- How to use secure assetsexamples/complex_bot_example.py
- Advanced multi-task bot
Creating Additional Bots
After your first bot, creating more is even easier:If You Have the Template Locally
Or Use the GitHub URL Again
Common Automation Ideas
Here are some ideas to get you started:- File Processing - Convert, rename, organize files
- Web Scraping - Extract data from websites
- Excel Automation - Process spreadsheets
- Email Tasks - Send reports, check inbox
- Database Work - Import/export data
- API Integration - Connect to web services
- Report Generation - Create PDFs, charts
- System Monitoring - Check disk space, processes
Optional: Advanced Bot Structure
For complex automations, you can organize your code into task modules:Create Task Modules
Create atasks/
folder and organize your subtasks:
Import and Use Tasks
In yourbot.py
:
Tips for Success
- Start Simple - Begin with logging and folder creation
- Use Examples - Copy from the examples folder
- Test Often - Run
python bot.py
frequently - Check Folders - Look in
Documents/openautomate-bot/YourBot/
- Use Assets - Store passwords and API keys as assets
- Organize Tasks - For complex bots, create a
tasks/
folder
Need Help?
- Check Examples - Look in
examples/
folder in your generated bot - Read Logs - The bot tells you whatβs happening
- Start Simple - Just make it log βHello Worldβ first
- Community Support - Join our Discord
Next Steps
Once you have a working bot:- Deploy Your Bot: Package it as a ZIP file and upload to the OpenAutomate dashboard
- Explore Advanced Features: Check out Python Templates for more examples
- Learn About Assets: Store credentials securely in the platform
- Set Up Scheduling: Run your bots automatically on schedules