AmirHossein MnasouriZade
Workflows by AmirHossein MnasouriZade
Complete guide to setting up and generating TOTP codes in n8n 🔐
# Setting Up and Generating TOTP ## Step 1: Receive QR Code and Extract the Link **1. Receive the QR Code from the 2FA service** After enabling two-factor authentication (2FA) on services like OpenAI, Google, GitHub, etc., a QR Code will be given to you, which you need to scan. This QR Code contains the TOTP link used to generate one-time passcodes. **2. Extract the link from the received QR Code** To extract the link from the QR Code, use online tools. These tools will help you extract the corresponding link. After using an online tool, the extracted link will appear in the following format: ``` otpauth://totp/ServiceName:username?secret=secret_key&issuer=ServiceName ``` For example: ``` otpauth://totp/OpenAI:[email protected]?secret=test-test-test&issuer=OpenAI ``` ## Step 2: Create TOTP Credential in n8n 1. **Create a new Credential** To use TOTP in n8n, you need to create a new **TOTP Credential**. 2. **Enter the details in the Credential** - **In the Secret field:** Enter the **secret key** (extracted from the QR Code link). For example: ``` test-test-test ``` - **In the Label field:** Enter **ServiceName:username** For example: ``` OpenAI:[email protected] ```  3. **Save the Credential** After entering the information, click Save to save the Credential. ## Step 3: Get the TOTP Code **Click on Test Workflow** After setting up the credentials in n8n, click on Test, and the corresponding code will be delivered to you. Output: ``` [ { "token": "720769", "secondsRemaining": 18 } ] ```  **==This code is exactly the same as the one generated by apps and services like Google Authenticator or Authy. 🔐==** Contact me on [Telegram]: https://t.me/amir676080
Notify on Telegram when a new order is created in WooCommerce 📦
**📦 Send Telegram Notifications for New WooCommerce Orders** This workflow automatically sends a Telegram notification when an order status in WooCommerce changes to "Processing." Perfect for online store owners who want instant updates on order fulfillment.  ## ⚙️ Set Up Telegram Alerts for WooCommerce Orders - Configure WooCommerce Webhook to trigger on order updates.  - Create a Telegram Bot and obtain the API token. - Set Up Telegram Credentials in n8n. - Configure the Telegram Node with your chat ID. - Activate and Test the workflow by placing a new order. ##💡 Notes You can customize the message format in the 🖋️ Design Message Template node to include additional order details. Contact me on [Telegram]: https://t.me/amir676080 ## Message structure includes the following details 🆔 Order Number: 11234 👦🏻 Customer Name: John Doe 💵 Amount: 299.99 USD 📅 Order Date: ➖ 25th November 2024 at 14:42 🏙 City: New York 📞 Phone: +1 555-1234 ✍🏻 Order Note: Fast delivery requested 📦 Ordered Products: 🔹 Wireless Earbuds (2 items) 📝 Type: Premium Sound Edition  Contact me on [Telegram]: https://t.me/amir676080