// Create workflow session
const workflow = await client.createWorkflowSession({
name: 'product-search-and-extract',
url: 'https://www.amazon.com'
});
console.log('Livestream URL:', workflow.livestreamUrl);
// Search for the product
await workflow.agentic("Search for women's shampoo");
// Find the cheapest option in the results
await workflow.agentic("Find the cheapest one in the results");
// Extract product information
await workflow.agentic("Extract the cost, product name, and product information");
// Close the workflow session
await workflow.close();