This guide will walk you through creating and deploying your first Streamline automation.
Before you begin, ensure you have:
- A Freddy account with an active organization
- Python 3.13+ installed locally
- Git installed (for GitHub deployment)
- The Aitronos CLI tool (installation guide)
The Aitronos CLI simplifies automation development and deployment.
# Install via pip
pip install aitronos-cli
# Verify installation
aitronos --versionSee the CLI Installation Guide for detailed instructions.
Log in to your Freddy account through the CLI:
aitronos auth loginThis will open your browser to authenticate. Once complete, your session token will be saved locally.
Download the project template to get started quickly:
# Create a new directory
mkdir my-first-automation
cd my-first-automation
# Download template
aitronos streamline template downloadThis creates a basic automation structure:
my-first-automation/
├── streamline.yaml # Automation configuration
├── main.py # Your automation code
├── requirements.txt # Python dependencies
└── README.md # DocumentationCreate the required files manually:
streamline.yaml
name: my-first-automation
description: My first Streamline automation
execution_file: main.py
parameters:
- name: message
type: string
required: false
default: "Hello, World!"main.py
"""My first Streamline automation."""
def main(message: str = "Hello, World!"):
"""
Simple automation that prints a message.
Args:
message: The message to print
"""
print(f"Automation says: {message}")
return {
"success": True,
"message": message,
"timestamp": "2025-11-27T10:00:00Z"
}
if __name__ == "__main__":
import sys
msg = sys.argv[1] if len(sys.argv) > 1 else "Hello, World!"
result = main(msg)
print(result)requirements.txt
# Add your Python dependencies here
requests>=2.31.0Before deploying, test your automation locally:
# Install dependencies
pip install -r requirements.txt
# Run your automation
python main.py "Test message"- Create a GitHub repository:
# Initialize git
git init
git add .
git commit -m "Initial commit"
# Create repository using CLI
aitronos streamline repo create \
--name my-first-automation \
--description "My first Streamline automation" \
--private- Push your code:
# Add remote (URL provided by CLI)
git remote add origin https://github.com/your-username/my-first-automation.git
git branch -M main
git push -u origin main- Deploy to Streamline:
aitronos streamline deploy \
--repo https://github.com/your-username/my-first-automation.git \
--branch main \
--name "My First Automation"The CLI will:
- Upload your automation to Streamline
- Set up GitHub webhook for automatic sync
- Return your automation ID
Upload directly without Git:
# Create a ZIP file
zip -r automation.zip . -x "*.git*" -x "*__pycache__*" -x "*.pyc"
# Upload to Streamline
aitronos streamline upload \
--file automation.zip \
--name "My First Automation"# Execute with default parameters
aitronos streamline execute <automation-id>
# Execute with custom parameters
aitronos streamline execute <automation-id> \
--param message="Hello from CLI!"curl -X POST "https://api.aitronos.com/v1/streamline/automations/{automation_id}/execute" \
-H "Authorization: Bearer $FREDDY_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"parameters": {
"message": "Hello from API!"
},
"return_mode": "wait"
}'# List recent executions
aitronos streamline executions list <automation-id>
# Get specific execution details
aitronos streamline executions get <execution-id>curl "https://api.aitronos.com/v1/streamline/executions/{execution_id}" \
-H "Authorization: Bearer $FREDDY_SESSION_TOKEN"Now that you have your first automation running:
- Add Scheduling - Run your automation on a schedule
- Project Structure - Learn about advanced project structures
- GitHub Integration - Set up automatic deployments
- Parameters & Configuration - Configure automation parameters
- Best Practices - Follow recommended patterns
If you get authentication errors:
# Re-authenticate
aitronos auth login
# Verify your session
aitronos auth whoamiCheck your streamline.yaml configuration:
- Ensure
execution_filepoints to the correct file - Verify all required parameters are defined
- Check that your Python code has no syntax errors
If your automation times out:
- Default timeout is 300 seconds (5 minutes)
- Optimize your code for better performance
- Contact support for increased timeout limits
Need help?
- Documentation: Streamline Guides
- API Reference: Streamline API
- Email: support@aitronos.com
- Hub: Freddy Hub