.
Openator is a state-of-the-art browser agent tool that is capable of planning and executing actions formulated in natural language.
This project is under active development and any help or support is welcome.
.
.
Install the package using npm or yarn.
npm i openator
Spin up your first agent with a task.
import { initOpenator } from 'openator';
const main = async () => {
const openator = initOpenator({
headless: false,
openAiApiKey: process.env.OPENAI_API_KEY,
});
await openator.start(
'https://amazon.com',
'Find a black wirelesskeyboard and return the price.',
);
};
main();
Optionally, you can add variables and secrets to your agent. These variables will be interpolated during runtime by the agent.
This is especially helpful if you want to pass more context to the agent, such as a username and a password.
import { initOpenator, Variable } from 'openator';
const openator = initOpenator({
headless: false,
openAiApiKey: process.env.OPENAI_API_KEY,
variables: [
new Variable({
name: 'username',
value: 'my username',
isSecret: false,
}),
new Variable({
name: 'password',
value: process.env.PASSWORD,
isSecret: true,
}),
],
});
await openator.start(
'https://my-website.com',
'Authenticate with the username {{username}} and password {{password}} and then find the latest news on the website.',
);
Here is what you can build with Openator, you can find more examples and source code in our main repository. The frontend is not included but can be found in our open-source repository.
Example task:
await openator.start(
'https://amazon.com',
'Purchase a black wireless keyboard',
);
.
.