Ты лучший разработчик JSON для сервиса N8N. У тебя опыт уже более пяти лет, и ты делаешь это каждый день. Составь мне полностью рабочий JSON под мои задачи. Я хочу, чтобы сохранялся диалог с каждым пользователем в памяти. У меня есть Google-таблица, я тебе дам от нее шапку, чтобы ты правильно подставил туда все значения. Полностью сформирую рабочую логику процесса и дай мне рекомендации, нужно ли, чтобы бот умел читать голосовые сообщения и принимать картинки, чтобы их расшифровывать и на них также правильно отвечать. Ключи от OpenAI у меня есть. Будем использовать модель 3.5 Turbo, так как она есть меньше токенов. Но нам нужно, чтобы робот отвечал максимально как человек, то есть нам нужно будет еще подумать над промптом. Если ты сам не можешь промпт сделать, то скажи, я сама продумаю полностью. Но дай мне рабочую логику, если тебе что-то нужно, задавай мне дальше вопросы.

🧠 PROMPT: OLGA FABOT BOT SCRIPT FOR n8n
Create a fully working JSON file for n8n, implementing the Olga Fabot Telegram bot, in which:

📌 1. 🔗 INITIAL DATA
OpenAI API Key: (Leave the {{OPENAI_API_KEY}} field empty so that the user can insert their own)
Model: GPT-3.5-turbo
Language: detect automatically
Telegram Bot API Key: (leave the {{TELEGRAM_BOT_TOKEN}} field)

Payment links (as BUTTONS):

💳 Donate for any amount: https://app.lava.top/dypreka?donate=open dypreka - Lava.top dypreka - Lava.top  

📅 "Regular" subscription ($29/month): https://app.lava.top/products/2d83939b-5de2-4be6-b6a8-241582e13165/9e572c3b-9944-4ce1-bc79-c3143885977d   

💎 Premium subscription ($100/month): https://app.lava.top/products/2d83939b-5de2-4be6-b6a8-241582e13165/41006268-f01e-4ad6-bad5-be92adc7c9ef   

👤 2. OLGA FABOT — BEHAVIORAL LOGIC
Female 35–40 years old

Pastry chef with specialized secondary education, interested in molecular cuisine

Studying nutrition, biochemistry, recommends supplements with evidence base (PubMed, Cochrane)

Calm, wise, soft, does not flirt, does not fawn

Supports on an emotional and scientific level, especially during periods of depression, anxiety, etc.

If necessary, says:
"I use a translator to answer you in your language, forgive any inaccuracies"

🧩 3. BASIC SCRIPT LOGIC
📍 3.1. Telegram Trigger:
Triggered by any incoming message.

📍 3.2. Language check:
If the message language is ≠ Russian, a notification is sent that a translator is being used.

📍 3.3. DATA STORAGE:
Using Google Sheets (if connected) or internal n8n database:

user_id

username

subscription_type: none / standard / premium

subscription_expiry

messages_used_this_month

last_donation_offer_date

📍 3.4. COMMAND PROCESSING:

/start: greeting and explanation of who Olga is and what she can do

/help: description of functionality + list of commands

/donate: donation button

/premium: premium subscription button

/subscribe: regular subscription

📍 3.5. SUBSCRIPTION
Standard ($29/month):

30 messages per month

Ability to get tips and recommendations

Premium ($100/month):

Unlimited communication

Support at any time, on any topic

When the user exceeds the message limit (if there is no subscription or the subscription is standard) → the bot sends a message:

Unfortunately, you have reached your message limit this month.
To continue, select a subscription:

With buttons:
🔹 Extend subscription — $29
🔸 Get premium — $100

📍 3.6. GPT PROCESSING
If everything is OK (the limit or premium has not been exceeded) → a request is sent to GPT-3.5 and a response is issued.
The context is constant: a built-in prompt with Olga's characteristics.

📍 3.7. THANKS → DONATE (ONCE A DAY)
If the user's text contains:

thank you

thank you

And >24 hours have passed since the last donation reminder, then Olga politely suggests:

If you found this useful, you can support me with a donation 💛

With a button:
💳 Support for any amount → https://app.lava.top/dypreka?donate=open dypreka - Lava.top dypreka - Lava.top  

🔘 4. USER INTERFACE — ALWAYS THROUGH BUTTONS
All actions and offers are always accompanied by built-in inline buttons to avoid links in the text.

Examples:

💬 Start → /start

💡 Help → /help

💳 Donate → button

📅 Subscribe → button

💎 Premium → button

🧾 5. JSON OUTPUT REQUIREMENTS
Must work on any n8n hosting environment

Structured: Telegram Trigger → check conditions → call OpenAI → return result

Process both text messages and commands

Support built-in message counter, and write it either to internal n8n storage or to Google Sheets (if connected)

All variables (API keys, links) are formatted as {{variable}} so that they can be replaced manually

Built-in "timeout" or "retry" on failures OpenAI

Buttons should be formatted as inline_keyboard

🔧 6. DICTIONARY OF VARIABLES (FOR JSON)
Name Value
{{TELEGRAM_BOT_TOKEN}} Telegram bot token
{{OPENAI_API_KEY}} OpenAI key
{{LAVA_SUBSCRIBE}} https://app.lava.top/.../9e572c3b   ...
{{LAVA_PREMIUM}} https://app.lava.top/.../41006268   ...
{{LAVA_DONATE}} https://app.lava.top/dypreka?donate=open dypreka - Lava.top dypreka - Lava.top  
{{TOKEN_LIMIT}} 30 (for standard subscription)
{{TOKEN_RESET_DAY}} 1 (first day of the month)