← All N8N workflows
AI & researchAgentChain LLMCodeGoogle SheetsGoogle Sheets Tool

YogiAI

Configured with Agent, Chain LLM, Google Sheets, Google Sheets Tool, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
AI & modelsAzure OpenAI ChatModel2LM Chat Azure Open AiData storeYogaLogGoogle SheetsAI & modelsAzure OpenAI ChatModel3LM Chat Azure Open AiTransformAuto-fixing OutputParserOutput Parser AutofixingAI & modelsAzure OpenAI ChatModel1LM Chat Azure Open AiTransformStructured OutputParserOutput Parser StructuredAI & modelsAI AgentAgentData storePosesDatabase1Google Sheets ToolData storeYogaLog2Google SheetsTransformSplit OutSplit OutTriggerTrigger 2130YogaPosesTodaySchedule TriggerAI & modelsAzure OpenAI ChatModel5LM Chat Azure Open AiData storeGet PoseNameGoogle SheetsAI & modelsWritePosesTodayChain LLMAI & modelsRewritePosesTodayChain LLMAI & modelsAzure OpenAI Chat ModelLM Chat Azure Open AiAI & modelsWriteJSONflexChain LLMTransformStructured OutputParser1Output Parser StructuredTransformAuto-fixing OutputParser1Output Parser AutofixingAI & modelsAzure OpenAI ChatModel6LM Chat Azure Open AiAI & modelsAzure OpenAI ChatModel4LM Chat Azure Open AiCodeCodeCodeWeb / APILine Push with FlexBubbleHTTP RequestTransformCombineAllEdit FieldsAI & modelsFix JSONChain LLM

Node categories in this workflow

  • AI & models
  • Data store
  • Transform
  • Trigger
  • Code
  • Web / API

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Azure OpenAI Chat Model2AI & modelsLM Chat Azure Open AiSee node parameters
YogaLogData storeGoogle Sheetsappend
Azure OpenAI Chat Model3AI & modelsLM Chat Azure Open AiSee node parameters
Auto-fixing Output ParserTransformOutput Parser AutofixingSee node parameters
Azure OpenAI Chat Model1AI & modelsLM Chat Azure Open AiSee node parameters
Structured Output ParserTransformOutput Parser StructuredSee node parameters
AI AgentAI & modelsAgentSee node parameters
PosesDatabase1Data storeGoogle Sheets ToolSee node parameters
YogaLog2Data storeGoogle Sheetsappend
Split OutTransformSplit OutSee node parameters
Trigger 2130 YogaPosesTodayTriggerSchedule TriggerSee node parameters
Azure OpenAI Chat Model5AI & modelsLM Chat Azure Open AiSee node parameters
Get PoseNameData storeGoogle SheetsSee node parameters
WritePosesTodayAI & modelsChain LLMSee node parameters
RewritePosesTodayAI & modelsChain LLMSee node parameters
Azure OpenAI Chat ModelAI & modelsLM Chat Azure Open AiSee node parameters
WriteJSONflexAI & modelsChain LLMSee node parameters
Structured Output Parser1TransformOutput Parser StructuredSee node parameters
Auto-fixing Output Parser1TransformOutput Parser AutofixingSee node parameters
Azure OpenAI Chat Model6AI & modelsLM Chat Azure Open AiSee node parameters
Azure OpenAI Chat Model4AI & modelsLM Chat Azure Open AiSee node parameters
CodeCodeCodeSee node parameters
Line Push with Flex BubbleWeb / APIHTTP RequestPOST
CombineAllTransformEdit FieldsSee node parameters
Fix JSONAI & modelsChain LLMSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • azureOpenAiApi
  • googleSheetsOAuth2Api
  • httpHeaderAuth

Workflow notes

YogiAI

YogiAI

This YogiAI is to provide daily reminder and pose of the day to the user via Line Push Message

The data will be generated from GoogleSheet Weighted Random Poses and Push to your Line at the scheduled time

Get the Data

Get the Data

This is to get the data from GoogleSheet

In the range we got, we'll have PosesName, uri (image link), and url (link when clicked)

The sample is here https://docs.google.com/spreadsheets/d/REPLACE_WITH_DOCUMENT_ID/edit?usp=sharing

The data is from https://pocketyoga.com/pose/

YOU SHOULD UPDATE IT WITH YOUR OWN DATA

Write FlexMessage for Images

Write FlexMessage for Images

To send the information in Line, we need to write a JSON for Flex Message meaning that it can slides to show the images of the pose

We use auto-parser here to make sure the JSON followed the required format

https://developers.line.biz/en/docs/messaging-api/using-flex-messages/

You can also use https://developers.line.biz/flex-simulator/?status=success to simulate the format

Write Text for Poses today

Write Text for Poses today

This node we want to have user friendly text such as with emojis, etc. So, we give Azure OpenAI the poses of today and ask it to rewrie

Combine the result and push it via Line

Combine the result and push it via Line

  1. We used 'Edit Field' to combine all the output (Hint: you can have input_txt and output_txt to debug your script here)
  2. To make sure that our JSON is proper, we asked AI to fix it again.
  3. Use Line Push >> Please replace "to" to your own UID and create the header authorization with the channel you have

https://developers.line.biz/en/docs/messaging-api/sending-messages/

Write back the data into Log and Log2

Write back the data into Log and Log2

We used log2 to count how many time we send each poses and weighted this back into the 'Yoga' Sheet to make the random more random ;)

To put the data back, we also want to extract from the output and split it out to put back to google sheet

YogiAI

YogiAI

Purpose and structure

This folder contains the YogiAI workflow. Its executable nodes use agent, chainLlm, code, googleSheets, googleSheetsTool, httpRequest, lmChatAzureOpenAi, outputParserAutofixing, outputParserStructured, scheduleTrigger, set, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Trigger 2130 YogaPosesToday

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0740_Splitout_Code_Automation_Webhook.json MIT; preserve source notices.

More in AI & research