页面简介
Use Node Mantis to automate website tasks and retrieve information with an AI agent.
正文摘录
OverviewNode Mantis gives your application an AI agent that can use websites. Describe a task in plain language, and the agent navigates pages, fills out forms, and retrieves information for you.What you can doAutomate tasks that take several steps across a website.Find information and return it as text or structured data.Run your own code between automation calls in the same browser session.A simple exampleGive the agent a task like:Go to sandbox.nodemantis.com, open Travel & Adventure, and report the title and price of the cheapest in-stock book.Complete the Quickstart first to install Node Mantis and set NODEMANTIS_API_KEY. Then run the task from your code or terminal:TypeScriptPythonCLIimport { NodeMantis } from "node-mantis"; const mantis = await NodeMantis.start({ startUrl: "https://sandbox.nodemantis.com", }); try { const result = await mantis.run( "Find the cheapest in-stock Travel & Adventure book. Report its title and price.", { maxIterations: 20 }, ); console.log(result.reason); } finally { await mantis.close(); }Console outputThe saved filtered category listing has In stock only checked and Price: low to high selected, shows all four results, and identifies Journey to the Center of the Earth as the first and cheapest book at $14.50 USD.Explore the demo bookshop yourself, or see Examples for more workflows.How it worksThe browser runs on your machine. Your prompt and a snapshot of the current page are sent to the Node Mantis hosted service to decide the next action or retrieve information. Your browser carries out the actions locally. Read Concepts for more detail.Get startedFollow the Quickstart to set up Node Mantis and run your first task. The API reference covers the available methods and options. For terminal workflows, see the CLI reference. To give tasks to an AI assistant, add the MCP server.