auto: 2024-06-19T15:58:06.774-04:00

This commit is contained in:
Linux User 2024-06-19 19:58:06 +00:00
parent 576b079c3b
commit e6d5240eec
7 changed files with 14 additions and 0 deletions

1
Gitea auto AI Groq.json Normal file

File diff suppressed because one or more lines are too long

1
Huggin Face tests.json Normal file
View File

@ -0,0 +1 @@
{"createdAt":"2024-06-17T21:23:09.730Z","updatedAt":"2024-06-18T13:47:51.218Z","id":"WaXdrLRNT2zrG54T","name":"Huggin Face tests","active":false,"nodes":[{"parameters":{"model":"2Noise/ChatTTS","options":{},"requestOptions":{}},"id":"43bd4531-9cc1-40d5-b139-fdf704cedf4e","name":"Hugging Face Inference Model","type":"@n8n/n8n-nodes-langchain.lmOpenHuggingFaceInference","typeVersion":1,"position":[880,400],"credentials":{"huggingFaceApi":{"id":"sG1DWgbq7Q3simy5","name":"HuggingFaceApi account"}}},{"parameters":{},"id":"3815c898-cb62-4558-94a4-abdbcd9c8aca","name":"When chat message received","type":"@n8n/n8n-nodes-langchain.chatTrigger","typeVersion":1,"position":[660,180],"webhookId":"d75b5ef0-5024-4d2d-83fd-e563875d73f0"},{"parameters":{"promptType":"define","text":"={{ $json.chatInput }}"},"id":"0e8d9d11-e953-44d2-bcb6-82948225045e","name":"Question and Answer Chain","type":"@n8n/n8n-nodes-langchain.chainRetrievalQa","typeVersion":1.3,"position":[860,180]},{"parameters":{"requestOptions":{}},"id":"b9201477-f231-4084-aa55-9b307ad92273","name":"Vector Store Retriever","type":"@n8n/n8n-nodes-langchain.retrieverVectorStore","typeVersion":1,"position":[1060,400]},{"parameters":{},"id":"b92bc47c-38b6-4bee-b524-b09279780e00","name":"In-Memory Vector Store","type":"@n8n/n8n-nodes-langchain.vectorStoreInMemory","typeVersion":1,"position":[1080,600]},{"parameters":{"options":{},"requestOptions":{}},"id":"ee92afe3-954b-4270-bf84-ec9fdb4aee0d","name":"Embeddings HuggingFace Inference","type":"@n8n/n8n-nodes-langchain.embeddingsHuggingFaceInference","typeVersion":1,"position":[1080,740],"credentials":{"huggingFaceApi":{"id":"sG1DWgbq7Q3simy5","name":"HuggingFaceApi account"}}}],"connections":{"When chat message received":{"main":[[{"node":"Question and Answer Chain","type":"main","index":0}]]},"Hugging Face Inference Model":{"ai_languageModel":[[{"node":"Question and Answer Chain","type":"ai_languageModel","index":0}]]},"Vector Store Retriever":{"ai_retriever":[[{"node":"Question and Answer Chain","type":"ai_retriever","index":0}]]},"In-Memory Vector Store":{"ai_vectorStore":[[{"node":"Vector Store Retriever","type":"ai_vectorStore","index":0}]]},"Embeddings HuggingFace Inference":{"ai_embedding":[[{"node":"In-Memory Vector Store","type":"ai_embedding","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"9de19cc9-1b15-4a0e-811e-c3c09e6a8665","triggerCount":0,"tags":[]}

View File

@ -0,0 +1 @@
{"createdAt":"2024-06-18T13:46:16.623Z","updatedAt":"2024-06-19T12:47:24.898Z","id":"dGYcvZCeFm5cqc14","name":"LinkedIn publication prepare","active":true,"nodes":[{"parameters":{"model":"llama3-70b-8192","options":{"maxTokensToSample":2048},"requestOptions":{}},"id":"e79f7e68-5e26-48d5-8982-fc254344aae7","name":"Groq Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatGroq","typeVersion":1,"position":[-120,440],"notesInFlow":true,"credentials":{"groqApi":{"id":"u4SobGEjjuXQixeQ","name":"Groq account"}},"notes":"IA Groq"},{"parameters":{"operation":"create","docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","fieldsToSend":{"properties":[{"fieldId":"Sujet","fieldValue":"={{ $node[\"Webhook\"].json[\"query\"][\"subject\"] }}"},{"fieldId":"Contenu","fieldValue":"={{ $node[\"LLM\"].json[\"text\"] }}"},{"fieldId":"Date_soumission","fieldValue":"={{ $node[\"DateTime\"].json[\"currentDate\"] }}"},{"fieldId":"LinkedIn","fieldValue":"En attente"},{"fieldId":"Image","fieldValue":"={{ $node[\"Webhook\"].json[\"query\"][\"image\"] }}"},{"fieldId":"Facebook","fieldValue":"En attente"},{"fieldId":"Twitter","fieldValue":"En attente"},{"fieldId":"Twitt","fieldValue":"={{ $node[\"Summarization\"].json[\"response\"][\"text\"] }}"}]}},"id":"ba7eca73-bade-4b0c-8de1-8ee1a16b6d97","name":"Grist","type":"n8n-nodes-base.grist","typeVersion":1,"position":[480,240],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Enregistrement article"},{"parameters":{"options":{}},"id":"3043a137-a0e0-488b-ac9c-00e9874badd0","name":"DateTime","type":"n8n-nodes-base.dateTime","typeVersion":2,"position":[300,240],"notesInFlow":true,"notes":"Récupération date actuelle"},{"parameters":{"httpMethod":"POST","path":"cff0c7ed-2701-47ea-85da-faa88a9ddccc","options":{}},"id":"72e8420d-2d6c-4b9f-ba07-030382e8a052","name":"Webhook","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[-500,240],"webhookId":"cff0c7ed-2701-47ea-85da-faa88a9ddccc","notesInFlow":true,"notes":"Déclenchement formulaire"},{"parameters":{"promptType":"define","text":"=Write an article on “{{ $json[\"query\"][\"subject\"] }}” in French. You can use technical words and content because article is intended to be read by information and technology professionals. First introduce with 200 characters with the description of the technology. Then write 100 characters with his history with some dates and important changes. After, on 250 characters on good points on using this and domain where its very efficient. With 250 more characters, insist on bad points on using this. Compare this with others and be precise on the added value of this. And finally conclude with other things not aborded previously. Close the article with a hook phrase to induct other readers to add comments, be creative. Add emoji at the beginning of each paragraph in correlation with the thematic aborded on it. Add a global title in English. It must contain the name of the subject and from 3 to 10 words and begin it with musical score emoji 🎼 and end it with musical notes emoji 🎶. Don't add markdown or HTML formating or characters under titles. Add 3 hashtags writed in uppercase at the bottom of the article with the most significatives words used."},"id":"81691874-ac33-4fff-bb27-065abff8b0fd","name":"LLM","type":"@n8n/n8n-nodes-langchain.chainLlm","typeVersion":1.4,"position":[-340,240],"notesInFlow":true,"notes":"Rédaction article"},{"parameters":{"chunkingMode":"advanced","options":{"summarizationMethodAndPrompts":{"values":{"summarizationMethod":"stuff","prompt":"Write a concise summary in french of only 200 characters without specifying this is a summary. Add emoji at beginning and end of the text. Place a link to the official website.\n\n\n\"{text}\""}}}},"id":"c2e83432-0d26-4d1d-a0b2-b11126cfa2ea","name":"Summarization","type":"@n8n/n8n-nodes-langchain.chainSummarization","typeVersion":2,"position":[-20,240]}],"connections":{"Groq Chat Model":{"ai_languageModel":[[{"node":"LLM","type":"ai_languageModel","index":0},{"node":"Summarization","type":"ai_languageModel","index":0}]]},"Webhook":{"main":[[{"node":"LLM","type":"main","index":0}]]},"LLM":{"main":[[{"node":"Summarization","type":"main","index":0}]]},"DateTime":{"main":[[{"node":"Grist","type":"main","index":0}]]},"Summarization":{"main":[[{"node":"DateTime","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"7851feda-c179-4bd8-8729-dc832ebde230","triggerCount":1,"tags":[]}

View File

@ -0,0 +1 @@
{"createdAt":"2024-06-15T20:20:30.174Z","updatedAt":"2024-06-19T12:21:53.809Z","id":"K5H7fF45v9GzQ8Aq","name":"LinkedIn publication submit","active":true,"nodes":[{"parameters":{"rule":{"interval":[{"field":"cronExpression","expression":"45 12 * * 1-6"}]}},"id":"3cd7b4a7-e40a-4dc0-9f7f-374705650d48","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.2,"position":[-800,660],"notesInFlow":true,"notes":"Déclenche tout les jours 12h45"},{"parameters":{"docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","limit":1,"additionalOptions":{"filter":{"filterProperties":[{"field":"LinkedIn","values":"En attente"}]},"sort":{"sortProperties":[{"field":"Date_soumission"}]}}},"id":"a958a90b-315e-4792-a227-f79079fa3a04","name":"GristSearch","type":"n8n-nodes-base.grist","typeVersion":1,"position":[-600,660],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Recupère articles préparés IA"},{"parameters":{"operation":"update","docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","rowId":"={{ $node[\"GristSearch\"].json[\"id\"] }}","fieldsToSend":{"properties":[{"fieldId":"Date_publication_LinkedIn","fieldValue":"={{ $node[\"DateTime\"].json[\"currentDate\"] }}"},{"fieldId":"LinkedIn","fieldValue":"Publié"}]}},"id":"e6ad36ca-3625-46df-a3c4-c3f27f7a5e7c","name":"GristUpdate","type":"n8n-nodes-base.grist","typeVersion":1,"position":[60,660],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Mettre à jour Sheet"},{"parameters":{"options":{}},"id":"9110a4ea-cb44-4cef-bf71-c505dfccf4cf","name":"DateTime","type":"n8n-nodes-base.dateTime","typeVersion":2,"position":[-420,660],"notesInFlow":true,"notes":"Récupère heure actuelle"},{"parameters":{"person":"aHGv3fiUeq","text":"={{ $node[\"GristSearch\"].json[\"Contenu\"] }}","shareMediaCategory":"IMAGE","additionalFields":{"title":"={{ $node[\"GristSearch\"].json[\"Sujet\"] }}","visibility":"PUBLIC"}},"id":"09a459e2-75d1-4dbd-9a86-a7dbc5fb19d3","name":"LinkedIn","type":"n8n-nodes-base.linkedIn","typeVersion":1,"position":[-100,660],"notesInFlow":true,"credentials":{"linkedInOAuth2Api":{"id":"MPgQTFhMIBnazvCU","name":"LinkedIn account"}},"notes":"Poster article"},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[LinkedIn - AUTO] Publication {{ $json.id }}: {{ $('GristSearch').item.json.Sujet }}","html":"=<h1>Article {{ $json.id }}: {{ $('GristSearch').item.json.Sujet }}</h1>\n<h2>Informations</h2>\nDate de publication: {{ $node[\"DateTime\"].json[\"currentDate\"] }}\n<h2>Contenu</h2>\n{{ $('GristSearch').item.json.Contenu }} \n{{ $('GristSearch').item.json.Image }} ","options":{}},"id":"679b497a-97bf-464c-a503-c5e511bab3eb","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[220,660],"notesInFlow":true,"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}},"notes":"Notification courriel"},{"parameters":{"url":"={{ $node[\"GristSearch\"].json[\"Image\"] }}","options":{"allowUnauthorizedCerts":true,"redirect":{"redirect":{}},"response":{"response":{"responseFormat":"file"}}}},"id":"cbc49358-334c-4ec0-af63-5ae93ed9f473","name":"HTTP","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[-260,660],"notesInFlow":true,"notes":"Récupération de l'image"}],"connections":{"Schedule Trigger":{"main":[[{"node":"GristSearch","type":"main","index":0}]]},"GristSearch":{"main":[[{"node":"DateTime","type":"main","index":0}]]},"GristUpdate":{"main":[[{"node":"Send Email","type":"main","index":0}]]},"DateTime":{"main":[[{"node":"HTTP","type":"main","index":0}]]},"LinkedIn":{"main":[[{"node":"GristUpdate","type":"main","index":0}]]},"HTTP":{"main":[[{"node":"LinkedIn","type":"main","index":0}]]}},"settings":{"executionOrder":"v1","timezone":"Europe/Paris","saveManualExecutions":true,"callerPolicy":"workflowsFromSameOwner"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"39518f49-6859-4810-b7e3-57e3cbf6d818","triggerCount":1,"tags":[]}

View File

@ -0,0 +1,8 @@
# Sauvegarde
Gitea auto AI Groq.json
Huggin Face tests.json
LinkedIn publication prepare.json
LinkedIn publication submit.json
Sauvegarde Gitea.json
Twitter publication submit.json

1
Sauvegarde Gitea.json Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"createdAt":"2024-06-19T11:54:41.835Z","updatedAt":"2024-06-19T13:13:03.459Z","id":"zbKzY2ohQyhp0wxC","name":"Twitter publication submit","active":true,"nodes":[{"parameters":{"rule":{"interval":[{"field":"cronExpression","expression":"45 12 * * 1-6"}]}},"id":"436fd5af-9451-414d-a710-421be651d11d","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.2,"position":[-800,660],"notesInFlow":true,"notes":"Déclenche tout les jours 12h45"},{"parameters":{"docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","limit":1,"additionalOptions":{"filter":{"filterProperties":[{"field":"Twitter","values":"En attente"}]},"sort":{"sortProperties":[{"field":"Date_soumission"}]}}},"id":"f10c25d0-b004-433b-b1bc-5295a86f4215","name":"GristSearch","type":"n8n-nodes-base.grist","typeVersion":1,"position":[-440,660],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Recupère articles préparés IA"},{"parameters":{"operation":"update","docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","rowId":"={{ $node[\"GristSearch\"].json[\"id\"] }}","fieldsToSend":{"properties":[{"fieldId":"Date_publication_Twitter","fieldValue":"={{ $node[\"DateTime\"].json[\"currentDate\"] }}"},{"fieldId":"Twitter","fieldValue":"Publié"}]}},"id":"0e7eff31-aa6e-4626-bac5-85e2e00e6f23","name":"GristUpdate","type":"n8n-nodes-base.grist","typeVersion":1,"position":[280,660],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Mettre à jour Sheet"},{"parameters":{"options":{}},"id":"31813f58-ece9-4582-85fe-3f76fe83db9c","name":"DateTime","type":"n8n-nodes-base.dateTime","typeVersion":2,"position":[-620,660],"notesInFlow":true,"notes":"Récupère heure actuelle"},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[Twitter - AUTO] Publication {{ $json.id }}: {{ $('GristSearch').item.json.Sujet }}","html":"=<h1>Article {{ $json.id }}: {{ $('GristSearch').item.json.Sujet }}</h1>\n<h2>Informations</h2>\nDate de publication: {{ $node[\"DateTime\"].json[\"currentDate\"] }}\n<h2>Contenu</h2>\n{{ $('GristSearch').item.json.Twitt }} ","options":{}},"id":"1ba85ef6-5436-4d21-84fe-4ed264448983","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[440,660],"notesInFlow":true,"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}},"notes":"Notification courriel"},{"parameters":{"text":"={{ $node[\"GristSearch\"].json[\"Twitt\"] }}","additionalFields":{}},"id":"255599f6-3662-4537-99d5-b2f5aa52e661","name":"X","type":"n8n-nodes-base.twitter","typeVersion":2,"position":[-80,660],"credentials":{"twitterOAuth2Api":{"id":"8YpX1E0OKTFb7Odm","name":"X account"}}}],"connections":{"Schedule Trigger":{"main":[[{"node":"DateTime","type":"main","index":0}]]},"GristUpdate":{"main":[[{"node":"Send Email","type":"main","index":0}]]},"DateTime":{"main":[[{"node":"GristSearch","type":"main","index":0}]]},"X":{"main":[[{"node":"GristUpdate","type":"main","index":0}]]},"GristSearch":{"main":[[{"node":"X","type":"main","index":0}]]}},"settings":{"executionOrder":"v1","timezone":"Europe/Paris","saveManualExecutions":true,"callerPolicy":"workflowsFromSameOwner"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"b6aa2dea-da83-4244-a24a-0d8b4bb1399f","triggerCount":1,"tags":[]}