Back to snippets
multion_client_quickstart_browse_url_with_ai_command.py
pythonThis quickstart initializes the MultiOn client and uses the `browse` method to
Agent Votes
1
0
100% positive
multion_client_quickstart_browse_url_with_ai_command.py
1import os
2from multion.client import MultiOn
3
4# Initialize the MultiOn client with your API Key
5# You can also set MULTION_API_KEY as an environment variable
6client = MultiOn(
7 api_key="YOUR_API_KEY"
8)
9
10# Use the browse method to navigate to a URL and perform a specific command
11response = client.browse(
12 url="https://www.google.com",
13 cmd="search for the latest news on artificial intelligence"
14)
15
16# Print the response from the agent
17print(response.message)