Files
2026-07-13 13:34:48 +08:00

10 lines
295 B
Plaintext

identifier = null
body = parse_json!(.body)
identifier = get(body, ["events", 0, "payload", "message", "source", "integrationId"]) ?? null
if identifier == null {
identifier = get(body, ["events", 0, "payload", "conversation", "metadata", "botpressIntegrationOwner"]) ?? null
}
identifier