{"id":35120435,"url":"https://github.com/codee-sh/medusa-plugin-automations","last_synced_at":"2026-03-08T04:31:48.871Z","repository":{"id":324547582,"uuid":"1096350857","full_name":"codee-sh/medusa-plugin-automations","owner":"codee-sh","description":"The Medusa.js plugin providing a flexible automation solutions with built-in notification and email/slack workflow support.","archived":false,"fork":false,"pushed_at":"2026-02-23T18:41:57.000Z","size":3453,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-02-24T01:36:13.028Z","etag":null,"topics":["commerce","eccomerce","medusa","medusa-automations","medusa-plugin","medusa-plugin-v2"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codee-sh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-11-14T09:49:04.000Z","updated_at":"2026-02-23T18:42:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/codee-sh/medusa-plugin-automations","commit_stats":null,"previous_names":["medusa-codee/medusa-plugin-notifications","codee-sh/medusa-plugin-notifications","codee-sh/medusa-plugin-automations"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/codee-sh/medusa-plugin-automations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codee-sh%2Fmedusa-plugin-automations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codee-sh%2Fmedusa-plugin-automations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codee-sh%2Fmedusa-plugin-automations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codee-sh%2Fmedusa-plugin-automations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codee-sh","download_url":"https://codeload.github.com/codee-sh/medusa-plugin-automations/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codee-sh%2Fmedusa-plugin-automations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30245222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commerce","eccomerce","medusa","medusa-automations","medusa-plugin","medusa-plugin-v2"],"created_at":"2025-12-27T23:41:37.419Z","updated_at":"2026-03-08T04:31:48.845Z","avatar_url":"https://github.com/codee-sh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Medusa plugin automations\n\nA comprehensive automation plugin for Medusa v2 that provides a flexible rule-based automation system with triggers, conditions, and actions. Create automated workflows that can send notifications (email, Slack), execute custom actions, or trigger other processes based on events, schedules, or manual triggers with customizable rules.\n\n## Features\n\n- **Automation Triggers**: Create automations triggered by events, schedules, or manual actions ([see details](#automation-triggers))\n- **Rule-Based Conditions**: Define complex conditions with support for arrays, relations, and multiple data types ([see details](#rules-and-conditions))\n- **Rich Attribute Support**: Pre-configured attributes for Products, Variants, Tags, Categories, and Inventory ([see available attributes](./docs/configuration.md#available-attributes-reference))\n- **Multiple Action Types**: Execute various actions including email notifications, Slack messages, SMS, push notifications, and custom actions ([see details](#actions))\n- **Event Subscribers**: Built-in subscribers for common Medusa events ([see available events](./docs/configuration.md#available-subscribers))\n- **Admin Panel**: Manage automations directly from Medusa Admin ([see details](#admin-panel))\n- **Extensible**: Add custom action handlers and extend automation capabilities\n- **Type-Safe**: Full TypeScript support with exported types and workflows\n\n## Compatibility\n\n- **Medusa Version**: `\u003e= 2.8.8`\n- **Node Version**: `\u003e= 20`\n\n## Installation\n\n```bash\nnpm install @codee-sh/medusa-plugin-automations\n# or\nyarn add @codee-sh/medusa-plugin-automations\n```\n\n## Quick Start\n\n### 1. Register the Plugin\n\nAdd to your `medusa-config.ts`:\n\n```typescript\nmodule.exports = defineConfig({\n  plugins: [\n    \"@codee-sh/medusa-plugin-automations\"\n  ]\n})\n```\n\n### 2. Run Migrations\n\nThe plugin includes database migrations for automation models. Run migrations to set up the required tables:\n\n```bash\nmedusa migrations run\n```\n\nSee [Database Migrations](./docs/configuration.md#database-migrations) for more details about the created tables.\n\n### 3. Access Admin Panel\n\nNavigate to **Notifications \u003e Automations** in your Medusa Admin dashboard, or directly access:\n\n```\n/app/notifications/automations\n```\n\n## How It Works\n\n### Automation Triggers\n\nAutomations are triggered by:\n- **Events**: Medusa events (e.g., `inventory.inventory-level.updated`, `product.updated`)\n- **Schedule**: Time-based triggers with configurable intervals (In progress)\n- **Manual**: Triggered manually from the admin panel\n\nSee [Available Subscribers](./docs/configuration.md#available-subscribers) in the configuration documentation for a complete list of supported events.\n\n### Rules and Conditions\n\nEach automation can have multiple rules that define when actions should be executed. Rules support primitive fields, relations (arrays), nested objects, and various operators for complex conditions.\n\nFor detailed information, see:\n- [Available Attributes Reference](./docs/configuration.md#available-attributes-reference) - Complete list of attributes for each event type\n- [Rule Operators](./docs/configuration.md#rule-operators) - All supported operators with examples\n- [Rule Values](./docs/configuration.md#rule-values) - Supported data types and usage\n\n### Actions\n\nWhen automation rules pass, actions are executed. Supported action types include:\n\n- **Email**: Send email notifications\n- **Slack**: Send Slack messages with Block Kit formatting\n- **Custom**: Extend with custom action handlers\n\nSee [Actions](./docs/configuration.md#actions) and [Slack Notification Provider](./docs/configuration.md#slack-notification-provider) in the configuration documentation for details on configuring and extending actions.\n\n## Admin Panel\n\nAccess the automations management interface in Medusa Admin at `/app/notifications/automations`. See [Admin Panel Documentation](./docs/admin.md) for details.\n\n## Documentation\n\n- [Configuration](./docs/configuration.md) - Plugin configuration options and extending functionality\n- [Admin Panel](./docs/admin.md) - Admin interface usage and automation management\n\n## Exports\n\nThe plugin exports the following:\n\n- `@codee-sh/medusa-plugin-automations/workflows` - Workflow functions for automation management\n- `@codee-sh/medusa-plugin-automations/modules/mpn-automation` - Automation module service\n- `@codee-sh/medusa-plugin-automations/utils` - Utility functions\n\n## Screenshots\n\n### How to edit trigger?\n![Automations Admin Panel](./docs/images/video.gif)\n\n*Automations management interface in Medusa Admin*\n\n## Related Plugins\n\nFor email templates and rendering functionality, see [@codee-sh/medusa-plugin-automations-emails](https://github.com/codee-sh/medusa-plugin-notification-emails).\n\n## License\n\nMIT\n\n## Author\n\nCodee Team - [https://codee.dev](https://codee.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodee-sh%2Fmedusa-plugin-automations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodee-sh%2Fmedusa-plugin-automations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodee-sh%2Fmedusa-plugin-automations/lists"}