Перейти к содержанию
НОВОЕПознакомьтесь с Alaaddin — вашим ИИ-джинном с голосом. trig8n запускается 1 января 2027. Что нового

Библиотека / Чат-боты и боты для мессенджеров

Чат-боты и боты для мессенджеров

Отвечать на вопросы клиентов о заказах WooCommerce и отправлениях DHL в чате OpenAI

Вызывается другим рабочим процессом, чтобы отвечать клиенту в чате на вопросы о заказах и доставке DHL. Зашифрованный email ограничивает поиск заказами этого клиента.

Что делает

## 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.

Шаги

  1. No email provided
  2. If email provided
  3. If user found
  4. No customer found
  5. If contains DHL data
  6. Extract Tracking Data
  7. Merge Orders
  8. Merge Order and Tracking Data
  9. Split Out
  10. Aggregate
  11. Merge Tracking Data
  12. Window Buffer Memory
  13. Execute Workflow Trigger
  14. WooCommerce - Get User

Всего шагов: 31.

Похожие автоматизации