| title | Runtime Events sample | ||||||
|---|---|---|---|---|---|---|---|
| description | Samples using events in AutoKitteh - subscribe(), next_event(), unsubscribe() | ||||||
| integrations | |||||||
| categories |
|
||||||
| tags |
|
The workflow is triggered by an HTTP GET request with a URL
path that ends with /meow.
During runtime, it waits (up to 1 minute) for a subsequent webhook event
where the URL path ends with /woof.
For detailed information about runtime event subscriptions, see: https://docs.autokitteh.com/develop/events/subscription
- Copy the webhook URL from the "Triggers" tab (see the instructions here)
- Deploy the project
-
Run this command to start a session:
curl -i "${WEBHOOK_URL}/meow" -
Run this command to end the session:
curl -i "${WEBHOOK_URL}/woof" -
Repeat step 1, but this time wait a minute until the session times out
-
Check out the resulting session logs in the AutoKitteh server for each of the steps above
Follow these detailed instructions to deploy the project on a self-hosted server.