Getting Started with the SDK
Step-by-step guide to using the Narada Python SDK with practical examples
You should have completed the Installation and Authentication sections before proceeding. If you haven’t, please complete them first.
How the Narada SDK Works
The Narada Python SDK provides a streamlined way to automate browser tasks using natural language commands.
Browser Management
The SDK automatically opens and manages browser windows, eliminating manual setup.
All prompts must start with /Operator
to invoke the web agent.
Built-in Error Handling
The SDK includes automatic retry mechanisms and helpful error messages for common issues.
Demo: Narada SDK in Action
Watch this demonstration of the complete SDK workflow:
This video demonstrates the complete workflow from initializing the SDK, through automatic browser execution, to receiving results.
How It Works
- SDK Initialization - The SDK automatically handles browser setup and extension communication
- Browser Execution - Your automation commands are executed in the managed browser window
- Results - Get your automation results directly in your Python code
- Automatic Cleanup - The SDK manages browser windows and cleans up resources
Your First SDK Automation
Let’s start with a simple example that demonstrates the core SDK functionality:
Basic SDK Setup
Create a Python script with the basic SDK initialization:
This creates a basic browser window that’s ready for automation tasks.
Run Your First Automation
Now let’s add a simple automation task:
The first time you run this, the SDK will guide you through any missing setup steps interactively. The SDK remembers your setup, so this only happens once.
Add Advanced Features
Enhance your automation with additional features:
When generate_gif=True
, the SDK automatically saves a GIF of the automation process to your Downloads folder. Read more about GIFs.
Advanced SDK Features
Structured Output with Pydantic Models
Extract structured data from your automation tasks:
Error Handling
The SDK includes built-in error handling, but you can add custom handling:
Troubleshooting
SDK Won't Start
SDK Won't Start
Common startup issues and solutions:
- API Key Missing: Ensure
NARADA_API_KEY
environment variable is set - Browser Issues: Make sure Chrome is installed and up to date
- Extension Problems: Verify the Narada extension is installed and active
- Network Issues: Check your internet connection and firewall settings
Automation Fails
Automation Fails
If your automation tasks aren’t working:
- Prompt Clarity: Make sure your prompts are clear and specific
- Timeout Issues: Increase timeout for complex tasks
- Page Loading: Some sites take time to load; be patient
- Extension State: Restart the browser if the extension seems unresponsive
What’s Next?
Parallel Execution
Learn how to run multiple automation tasks simultaneously
Error Handling
Master advanced error handling and retry mechanisms
Structured Output
Extract structured data using Pydantic models and JSON schemas
Screenshots & GIFs
Capture and analyze your automation workflows
Need Help?
GitHub Examples
Explore more examples and use cases on GitHub
Support
Contact our support team for assistance
The SDK is designed to be intuitive and self-guiding. Don’t hesitate to experiment with different prompts and features!