Bot de vocabulario en inglés de Telegram basado en Gemini y una API de palabras aleatorias
Este es unMiscellaneous, Multimodal AIflujo de automatización del dominio deautomatización que contiene 6 nodos.Utiliza principalmente nodos como Set, Telegram, Aggregate, HttpRequest, ScheduleTrigger. Creación de un bot de vocabulario en inglés para Telegram mediante Gemini y una API de palabras aleatorias
- •Bot Token de Telegram
- •Pueden requerirse credenciales de autenticación para la API de destino
Nodos utilizados (6)
Categoría
{
"meta": {
"instanceId": "783d2046f405cc6ecb20ef185376ed1023323a3da628b9d8156b1fb75c75e037",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "4e12712b-5541-41e4-9cf5-181aed2682ed",
"name": "Disparador Programado",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
0
],
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 3
}
]
}
},
"typeVersion": 1.2
},
{
"id": "8a025bc9-489d-4448-944d-652bfc2baf77",
"name": "Solicitud HTTP",
"type": "n8n-nodes-base.httpRequest",
"position": [
208,
0
],
"parameters": {
"url": "https://random-word-api.vercel.app/api?words=3",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "fb88b57f-7c18-431e-8d4b-429253803433",
"name": "Agregar",
"type": "n8n-nodes-base.aggregate",
"position": [
624,
0
],
"parameters": {
"options": {},
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "word"
}
]
}
},
"typeVersion": 1
},
{
"id": "e7b00fe8-0a71-4e00-af8f-703887170dde",
"name": "Editar Campos",
"type": "n8n-nodes-base.set",
"position": [
416,
0
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={\n \"word\": \"{{ $json }}\"\n}\n"
},
"typeVersion": 3.4
},
{
"id": "eae51ae4-cfd4-4d5a-b522-1c55bcce4863",
"name": "Enviar a un modelo",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"position": [
832,
0
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "models/gemini-1.5-flash",
"cachedResultName": "models/gemini-1.5-flash"
},
"options": {},
"messages": {
"values": [
{
"content": "=You are a vocabulary-summarizing AI. Please write a vocabulary digest message using the provided English words, including: the English word, the Vietnamese meaning, and one example sentence that contains that English word.\nToday's vocabulary list:\n{{ $json.word }}"
}
]
}
},
"credentials": {
"googlePalmApi": {
"id": "Atcc45Iqep6u15qs",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "97be971a-7304-4f6d-9b68-f2c1c8b90363",
"name": "Enviar un mensaje de texto",
"type": "n8n-nodes-base.telegram",
"position": [
1184,
0
],
"webhookId": "947f3fe3-d410-41f5-8340-247dbfeee897",
"parameters": {
"text": "={{ $json.content.parts[0].text }}",
"chatId": "xxxxx",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "Pq1cc0nSnbtjpiPv",
"name": "learn_english_bot"
}
},
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"fb88b57f-7c18-431e-8d4b-429253803433": {
"main": [
[
{
"node": "eae51ae4-cfd4-4d5a-b522-1c55bcce4863",
"type": "main",
"index": 0
}
]
]
},
"e7b00fe8-0a71-4e00-af8f-703887170dde": {
"main": [
[
{
"node": "fb88b57f-7c18-431e-8d4b-429253803433",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "e7b00fe8-0a71-4e00-af8f-703887170dde",
"type": "main",
"index": 0
}
]
]
},
"eae51ae4-cfd4-4d5a-b522-1c55bcce4863": {
"main": [
[
{
"node": "97be971a-7304-4f6d-9b68-f2c1c8b90363",
"type": "main",
"index": 0
}
]
]
},
"4e12712b-5541-41e4-9cf5-181aed2682ed": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Intermedio - Varios, IA Multimodal
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
Cong Nguyen
@cong-nguyenI’m a developer specialized in building web and mobile applications with AI integration and intelligent automation. With a solid background in data science, I help businesses build smarter digital solutions using cutting-edge technologies.
Compartir este flujo de trabajo