Skip to content

About

My First n8n workflow using AI agent, Telegram

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

n8nWorkFlow

My First n8n workflow using AI agent, Telegram

// ### Below code is to map records from Google/Airtable sheets to AI Agent. Paste this code in code JS node###//

// ✅ Process all Airtable records into a clean JSON array const cleanedData = $input.all().map(item => { const record = item.json;

return { id: record.ID, cost: parseFloat(record.Cost), category: record.Category, name: record.Name, brand: record.Brand, retail_price: parseFloat(record.Retail_Price), profit_margin: parseFloat(record.Retail_Price) - parseFloat(record.Cost), department: record.Department, sku: record.SKU, distribution_center_id: record.distribution_center_ID }; });

// ✅ Return a single item with the array inside records return [ { json: { records: cleanedData } } ];

Airtable is used to store records##

About

My First n8n workflow using AI agent, Telegram

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors