Designing the Workflow#
ตอนนี้เรารู้แล้วว่า Nathan ต้องการ automate อะไรบ้าง ลองพิจารณาขั้นตอนที่เขาต้องทำเพื่อให้บรรลุเป้าหมาย:
- Get the relevant data (order id, order status, order value, employee name) from the data warehouse
- Filter the orders by their status (Processing or Booked)
- Calculate the total value of all the Booked orders
- Notify the team members about the Booked orders in the company's Discord channel
- Insert the details about the Processing orders in Airtable for follow-up
- Schedule this workflow to run every Monday morning
Workflow ของ Nathan เกี่ยวข้องกับการส่งข้อมูลจาก data warehouse ของบริษัทไปยังบริการภายนอกสองแห่ง:
- Discord
- Airtable
ก่อนหน้านั้น ข้อมูลจะต้องถูกจัดการด้วยฟังก์ชันทั่วไป (การกรองตามเงื่อนไข การคำนวณ การตั้งเวลา)
n8n มี integrations สำหรับขั้นตอนเหล่านี้ทั้งหมด ดังนั้น workflow ของ Nathan ใน n8n จะมีลักษณะดังนี้:
คุณจะสร้าง workflow นี้ในแปดขั้นตอน:
- Getting data from the data warehouse
- Inserting data into Airtable
- Filtering orders
- Setting values for processing orders
- Calculating booked orders
- Notifying the team
- Scheduling the workflow
- Activating and examining the workflow
ในการสร้าง workflow นี้ คุณจะต้องใช้ credentials ที่อยู่ในอีเมลที่คุณได้รับจาก n8n เมื่อคุณสมัครเข้าร่วมคอร์สนี้ หากคุณยังไม่ได้สมัคร คุณสามารถทำได้ ที่นี่ หากคุณไม่ได้รับอีเมลยืนยันหลังจากสมัคร โปรด ติดต่อเรา