# Techniques

- [Preventing action loops](/techniques/preventing-action-loops.md): Prevent infinite loops in Mechanic tasks — guard against re-triggers when a task modifies the same Shopify resource it subscribes to.
- [Writing a high-quality task](/techniques/writing-a-high-quality-task.md): Best practices for writing Mechanic tasks — previews, action loop prevention, logging, error handling, and test mode patterns.
- [Tagging Shopify resources](/techniques/tagging-shopify-resources.md): Auto-tag Shopify orders, customers, and products using Mechanic tasks — add or remove tags via the GraphQL Admin API.
- [Batch processing of events](/techniques/batch-processing-of-events.md): Replace high-frequency Shopify webhook subscriptions with scheduled GraphQL scans to reduce queue volume and improve reliability.
- [Debouncing events](/techniques/debouncing-events.md): Debounce high-frequency Shopify webhook events in Mechanic using event filters and the cache to avoid duplicate processing.
- [Responding to action results](/techniques/responding-to-action-results.md): React to Mechanic action results using mechanic/actions/perform — build multi-step workflows that inspect HTTP responses, mutation results, and more.
- [Working with external APIs](/techniques/working-with-external-apis.md): Connect Mechanic to external REST and JSON APIs — load data via HTTP requests, receive data via webhooks, and integrate Shopify with any service.
- [JSON Web Signatures](/techniques/working-with-external-apis/json-web-signatures.md)
- [AWS request signatures](/techniques/working-with-external-apis/aws-request-signatures.md)
- [Finding a resource ID](/techniques/finding-a-resource-id.md)
- [Migrating templates from Shopify to Mechanic](/techniques/migrating-templates-from-shopify-to-mechanic.md): Migrate Shopify notification templates to Mechanic for custom order emails, PDF invoices, and on-demand transactional messages.
- [Securing Mechanic webhooks](/techniques/securing-mechanic-webhooks.md): Secure Mechanic webhooks with HMAC signatures and replay prevention — protect webhook endpoints used in online store forms.
- [Monitoring Mechanic](/techniques/monitoring.md): Monitor Mechanic task health and platform status — set up alerts, track queue delays, and diagnose Shopify webhook delivery issues.
