⚡ Create literary English/German to Chinese dictionary with GPT-4o-mini & Supabase

540 views · ⚡ Personal Productivity

Description

Description

This workflow creates a sophisticated bilingual dictionary that provides literary-style definitions and examples for English and German words. The system automatically detects the input language, generates comprehensive definitions in Chinese, creates three literary-style example sentences with translations, and stores everything in a Supabase database for future reference.

Who Is This For?

What Problem Does This Workflow Solve?

Traditional dictionaries often provide basic definitions without literary context or cross-language examples. This workflow addresses several key challenges:

How It Works

Main Dictionary Lookup Flow

  1. Input Processing: Receives a word via webhook POST request and automatically detects if it’s English or German
  2. AI Analysis: Uses OpenAI GPT-4o-mini to generate comprehensive definitions with literary context
  3. Response Formatting: Processes the AI response to extract structured data (word, meaning, examples)
  4. Quality Control: Validates the response and handles unclear or invalid inputs gracefully
  5. Database Storage: Saves the word, Chinese meaning, and examples to Supabase for future reference
  6. API Response: Returns formatted JSON with the complete dictionary entry

Data Storage Flow

  1. Parallel Processing: Simultaneously returns the dictionary data to the user and saves it to the database
  2. Structured Storage: Organizes data in Supabase with fields for words, Chinese meanings, and example arrays
  3. Success Confirmation: Provides confirmation when data is successfully stored

Setup Instructions

Prerequisites & Accounts

You’ll need accounts and API access for:

Webhook Configuration

Customization Options

This workflow transforms simple word lookups into rich, contextual learning experiences while building a personalized vocabulary database over time.

🔗 Nodes Used

Webhook, Supabase, AI Agent, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup