Skip to content

Latest commit

 

History

History

README.md

RPA Example with Auth Sessions

Credentials-based booking automation to book a consultation with a consultant and list consultations using Auth Sessions.

Run on Intuned

Open this project in Intuned by clicking the button below.

Run on Intuned

Getting Started

To get started developing browser automation projects with Intuned, check out the

Development

NOTE: All commands support --help flag to get more information about the command and its arguments and options.

Install dependencies

uv sync

After installing dependencies, intuned command should be available in your environment.

Run an API

# Book a consultation with default parameters
uv run intuned run api book-consultations .parameters/api/book-consultations/default.json --auth-session test-auth-session

# Book an automation consultation
uv run intuned run api book-consultations .parameters/api/book-consultations/automation-consultation.json --auth-session test-auth-session

# Book an API integration consultation
uv run intuned run api book-consultations .parameters/api/book-consultations/api-integration-consultation.json --auth-session test-auth-session

# Book a data extraction consultation
uv run intuned run api book-consultations .parameters/api/book-consultations/data-extraction-consultation.json --auth-session test-auth-session

# Book an other topic consultation
uv run intuned run api book-consultations .parameters/api/book-consultations/other-topic-consultation.json --auth-session test-auth-session

# Get consultations by email
uv run intuned run api get-consultations-by-email .parameters/api/get-consultations-by-email/default.json --auth-session test-auth-session

Save project

uv run intuned provision

Reference for saving project here

Auth Sessions

This project uses Intuned Auth Sessions. To learn more, check out the AuthSessions.

Create a new auth session

uv run intuned run authsession create .parameters/auth-sessions/create/default.json

Update an existing auth session

uv run intuned run authsession update <auth-session-id>

Validate an auth session

uv run intuned run authsession validate <auth-session-id>

Deploy project

uv run intuned deploy

intuned-browser: Intuned Browser SDK

This project uses Intuned browser SDK. For more information, check out the Intuned Browser SDK documentation.

Project Structure

/
├── api/                          # API endpoints
│   ├── book-consultations.py    # Book a consultation
│   └── get-consultations-by-email.py  # Get consultations by email
├── auth-sessions/                # Auth session related APIs
│   ├── check.py                  # API to check if the auth session is still valid
│   └── create.py                 # API to create/recreate the auth session programmatically
├── auth-sessions-instances/      # Auth session instances created and used by the CLI
│   └── test-auth-session/        # Example test auth session
│       ├── auth-session.json     # Browser state (cookies, localStorage)
│       └── metadata.json         # Auth session metadata
├── .parameters/                  # Test parameters for APIs
│   ├── api/                      # API parameters folder
│   │   ├── book-consultations/
│   │   │   ├── api-integration-consultation.json
│   │   │   ├── automation-consultation.json
│   │   │   ├── data-extraction-consultation.json
│   │   │   ├── default.json
│   │   │   └── other-topic-consultation.json
│   │   └── get-consultations-by-email/
│   │       └── default.json
│   └── auth-sessions/            # Auth session parameters
│       ├── check/
│       │   └── default.json
│       └── create/
│           └── default.json
├── Intuned.jsonc                 # Intuned project configuration file
└── pyproject.toml                # Python project dependencies

Learn More