https://github.com/variablevic/medusa-ai-importer
An AI Product Importer for the Medusa admin.
https://github.com/variablevic/medusa-ai-importer
ai ecommerce medusa-admin medusajs openai-api product-importer
Last synced: 7 months ago
JSON representation
An AI Product Importer for the Medusa admin.
- Host: GitHub
- URL: https://github.com/variablevic/medusa-ai-importer
- Owner: VariableVic
- Created: 2024-02-27T09:25:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-29T15:50:03.000Z (about 1 year ago)
- Last Synced: 2025-02-27T23:47:45.578Z (7 months ago)
- Topics: ai, ecommerce, medusa-admin, medusajs, openai-api, product-importer
- Language: TypeScript
- Homepage: https://twitter.com/VariableVic/status/1763527639929622951
- Size: 41 KB
- Stars: 26
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Medusa AI ImporterAn AI Product Importer for the [Medusa](https://medusajs.com/) admin. You can paste in product data in any form: JSON, XML, csv, text, etc - and the LLM will turn in into Medusa products. Built with [Medusa UI](https://docs.medusajs.com/ui), [OpenAI](https://platform.openai.com), and [Vercel AI SDK](https://sdk.vercel.ai).
**Disclaimer**: this code is the result of my experimentation, and is provided as-is. It's by no means optimized or actively maintained.
https://github.com/VariableVic/medusa-ai-importer/assets/42065266/597b8e42-937e-46e6-9ed4-fa81555ac0ed
## Prerequisites
1. This widget requires an OpenAI platform account and API key. Go to https://platform.openai.com/account/api-keys to set this up.
2. You need a valid Medusa database. The fastest way to set this up is by using [create-medusa-app](https://docs.medusajs.com/create-medusa-app).## Getting Started
1. Clone repo and install dependencies.
2. In your `.env` file, add an `OPENAI_API_KEY` environment variable containing your API key, and link your database:```
OPENAI_API_KEY=
DATABASE_URL=
```3. Start your dev server and log into the admin. You'll find the importer on the settings page under 'extensions'!