Library / Chatbots & Messaging Bots
Chatbots & Messaging Bots
Answer customer WooCommerce order and DHL shipment questions in an OpenAI chat
Called by another workflow to answer a customer's order and DHL shipping questions in chat. An encrypted email limits lookups to that customer's own orders.
What it does
## How to supply user email As we want to ensure that customers can only query information about their own orders, the email address gets encrypted in the backend, and then decrypt again in this workflow. If the email was allowed to be set unencrypted, anyone could query information from other customers. ### The email address get supplied in the chat script at the following location: createChat({ webhookUrl: '...', metadata: { email: 'ENCRYPTED_EMAIL_ADDRESS' }, }); ## Example Scripts: ### Encrypt email on the backend Run the following code in the backend of your website, send the data to the frontend, and then set it dynamically at the above defined location as email. ### Decrypt email in workflow This script is already used in this workflow and is only provided here again as an example.
The steps
- No email provided
- If email provided
- If user found
- No customer found
- If contains DHL data
- Extract Tracking Data
- Merge Orders
- Merge Order and Tracking Data
- Split Out
- Aggregate
- Merge Tracking Data
- Window Buffer Memory
- Execute Workflow Trigger
- WooCommerce - Get User
31 steps in total.
Similar automations
Chatbots & Messaging BotsAnswer WooCommerce order and DHL shipping questions in a chatbot31 stepsAI Agents & AssistantsWooCommerce Customer Support Agent with OpenAI and DHL31 stepsCustomer Support & HelpdeskTrack WooCommerce Orders with DHL Shipping Data using OpenAI60 stepsCustomer Support & HelpdeskTrack WooCommerce Orders with DHL Shipping Data using OpenAI60 steps