Back to prompt library
Initialize Mastra AI Workflow in TypeScript
Linked challenge: Build Agritech DPI Advisory Workflows with Mastra AI and OpenHands
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Import `{ Workflow, Step } from '@mastra/core'`. Define a workflow `agriAdvisoryWorkflow` with steps `fetchTelemetryData` and `generateAdvisory`.