import { Client } from 'functions.do';
// Initialize the client with your API key
const fns = new Client({ apiKey: 'your_api_key_here' });
// Define the input for a complex business function
const input = {
productName: 'Agentic Workflow Platform',
problem: ['Complex business processes are manual and error-prone.'],
customerSegments: ['Enterprise Developers', 'DevOps Teams']
};
// Execute the function and get a typesafe result
async function generateBusinessModel() {
const leanCanvas = await fns.run('generate/lean-canvas', input);
console.log(leanCanvas.uniqueValueProposition);
// Expected output: "The simplest way to deliver business services as software."
}
generateBusinessModel();