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

https://github.com/guillaumeast/mentorai

Turn any YouTube channel into a full Custom GPT (avatar, settings, transcripts)
https://github.com/guillaumeast/mentorai

automation bash cli gpt llm prompt-engineering text-processing transcripts youtube

Last synced: 2 months ago
JSON representation

Turn any YouTube channel into a full Custom GPT (avatar, settings, transcripts)

Awesome Lists containing this project

README

          

# ๐Ÿง  `mentorai` v0.1.0

Minimal YouTube-to-GPT generator โ€“ converts any YouTube channel into a ready-to-upload Custom GPT package, **in one CLI command**.

> **`mentorai`** creates a complete Custom GPT pack from any YouTube channel, including profile, prompt, and transcript knowledge โ€“
> so you can talk to your favorite creator, expert, or guruโ€ฆ as if they were right there with you.

[![Language: Bash](https://img.shields.io/badge/language-Bash-89e051)](https://www.gnu.org/software/bash/)
[![Type: CLI](https://img.shields.io/badge/type-CLI-8b949e)]()
[![Platform: macOS/Linux](https://img.shields.io/badge/platform-macOS%20%26%20Linux-blue)](https://en.wikipedia.org/wiki/Unix-like)
[![Status: v0.1.0](https://img.shields.io/badge/status-v0.1.0-darkgreen)](https://github.com/guillaumeast/mentorai/releases)

---

## โœจ Features

- Fully local โ€“ no API keys or cloud services needed
- Only requires [`yt-dlp`](https://github.com/yt-dlp/yt-dlp)
- Supports full channel URLs or YouTube handles (e.g. `@GoogleDevelopers`)
- Outputs everything needed to configure a GPT via [chat.openai.com/gpts](https://chat.openai.com/gpts):
- ๐Ÿ–ผ๏ธ Profile picture
- ๐Ÿง  Cleaned and chunked transcripts (20 files max)
- ๐Ÿช„ Pre-prompt and GPT settings (name, description, instructions)
- Friendly file structure in `output//`

---

### ๐Ÿš€ Usage

```bash
./mentorai.bash https://www.youtube.com/@GoogleDevelopers
```

or just:

```bash
./mentorai.bash @GoogleDevelopers
```

Output will be created in:

```bash
output/GoogleDevelopers/
โ”œโ”€โ”€ avatar.jpg
โ”œโ”€โ”€ settings.txt
โ”œโ”€โ”€ prompt.txt
โ”œโ”€โ”€ transcript-1.txt
โ”œโ”€โ”€ ...
โ””โ”€โ”€ transcript-20.txt
```

---

### ๐Ÿ“ฆ Dependencies

- `yt-dlp` โ€“ fetches videos, metadata and subtitles
- `jq` โ€“ parses JSON output from `yt-dlp`
- `curl` โ€“ checks URLs and downloads channel avatar
- `grep` โ€“ cleans subtitle `.srt` files
- `sed` โ€“ template variable replacement & filename parsing
- `bash`, `wc`, `xargs` โ€“ core shell utilities (standard on macOS/Linux)

Install example (macOS) :
```bash
brew install yt-dlp jq curl grep gnu-sed
```

---

## ๐Ÿงช Example

```bash
./mentorai.bash https://www.youtube.com/@GoogleDevelopers
```

Then go to [https://chat.openai.com/gpts](https://chat.openai.com/gpts) and:
1. Upload `avatar.jpg`
2. Copy-paste settings from `settings.txt`
3. Upload `transcript-*.txt` files
4. Done.

---

## ๐Ÿงฑ Project structure

```
mentorai/
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ mentorai.bash
โ”œโ”€โ”€ prompt_template.txt
โ””โ”€โ”€ output/
โ””โ”€โ”€ /
โ”œโ”€โ”€ avatar.png
โ”œโ”€โ”€ settings/
โ””โ”€โ”€ knowledge/
```

---

> _"Turn inspiration into conversation โ€” one channel at a time.โ€_ ๐ŸŽ™๏ธ