An example of how to invoke the Emergence Web Automation API from Python.
This example uses the uv tool for Python project management. Install uv first.
To create the virtual environment and install all dependencies:
uv sync
You will need an API key, which you can get from https://dashboard.emergence.ai/.
Create a file called .env
in the same directory as this repository, and copy the api key in it. It should look like:
EMERGENCE_API_KEY="<your API key>"
And finally run the example with
uv run python emergence_web_agent.py