automate-whatsapp
Build WhatsApp automations with Kapso workflows: configure WhatsApp triggers, edit workflow graphs, manage executions, deploy functions, and use databases/integrations for state. Use when automating WhatsApp conversations and event handling.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Build WhatsApp automations with Kapso workflows: configure WhatsApp triggers, edit workflow graphs, manage executions, deploy functions, and use databases/integrations for state. Use when automating WhatsApp conversations and event handling.
How to use
Przygotuj zmienne środowiskowe: ustaw
KAPSO_API_BASE_URL(tylko host bez/platform/v1) iKAPSO_API_KEYz dostępem do API Kapso.Pobierz graf przepływu pracy, którą chcesz edytować, używając
node scripts/get-graph.js <workflow_id>. Zanotuj wartośćlock_version— będzie potrzebna do aktualizacji.Edytuj pobrany plik JSON zgodnie z regułami grafu przepływu. Zweryfikuj poprawność edycji poleceniem
node scripts/validate-graph.js --definition-file <ścieżka_do_pliku>.Zaktualizuj graf w systemie Kapso poleceniem
node scripts/update-graph.js <workflow_id> --expected-lock-version <numer> --definition-file <ścieżka_do_pliku>. Jeśli pojawi się konflikt wersji, pobierz graf ponownie i powtórz zmianę z nową wartościąlock_version.Skonfiguruj wyzwalacze WhatsApp: najpierw uruchom
node scripts/list-whatsapp-phone-numbers.jsaby uzyskaćphone_number_id, następnie utwórz wyzwalacz poleceniemnode scripts/create-trigger.js <workflow_id> --trigger-type inbound_message --phone-number-id <id>.Monitoruj wykonania przepływu za pomocą
node scripts/list-executions.js <workflow_id>aby wyświetlić historię, lubnode scripts/get-execution.js <execution_id>aby sprawdzić szczegóły konkretnego uruchomienia.