What are Functions?
Functions allow you to:- Deploy browser automations as APIs
- Scale automatically based on demand
- Invoke via HTTP requests
- Monitor execution and performance
- Schedule recurring executions
Creating a Function
Deploy your first function:Invoking Functions
Via HTTP
Call functions using standard HTTP requests:Via SDK
Call functions using the Notte SDK:Function Parameters
Pass parameters to functions:Use Cases
1. Scheduled Scraping
Scrape data on a schedule:2. Webhook Endpoints
Trigger automations from webhooks:3. API Integrations
Expose automations as APIs:4. Monitoring
Monitor websites for changes:Function Management
List Functions
View all deployed functions:Update Functions
Update function code:Delete Functions
Remove functions:Scheduling
Schedule function execution using cron syntax:Monitoring
Execution Logs
View function execution history:Metrics
Track function performance:Error Handling
Handle function errors gracefully:Best Practices
1. Keep Functions Focused
Each function should do one thing:2. Use Timeouts
Set appropriate timeouts:3. Return Structured Data
Return JSON-serializable data:4. Handle Errors
Always handle potential errors:5. Add Documentation
Document your functions:Function Limits
Functions have execution limits:- Timeout: 5 minutes default, 15 minutes max
- Memory: 1GB default, configurable
- Concurrency: Based on your plan
- Invocations: Based on your plan
Pricing
Function usage is metered based on:- Execution time
- Number of invocations
- Resource usage

