An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          






Medusa logo




Medusa AI Importer

An 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.



Follow @VariableVic

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'!