Swarm Workflow Initialization

implementationChallenge

Prompt Content

Using Mastra AI, initialize a new `Workflow` named 'ArcticSentinel'. Define a starting step that triggers when a 'SensorAlert' is received. Import `{ Mastra, Agent, Workflow } from '@mastra/core'`. Define a tool `calculateIntercept` that takes GPS coordinates and returns a vector. Ensure the workflow state maintains the history of 'LastKnownIcePosition'.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations