我想用分支逻辑创建一个zap.我想这样做,因为网关/ REST API使用支持只添加一个Web钩子.当假设触发器返回带有'event_type'='alpha'的事件时,我需要一个可以执行Action'A'的Zap,当同一个触发器返回带有'event_type'='beta'的事件时,将执行Action'B'
例:
if trigger_A.output.event_type = 'alpha'
then 'Send mail' to 'abc@xyz.com'
else if trigger_A.output.event_type = 'beta'
then 'Send message' to 'Slack'
else
post in 'Facebook' trigger_A.output.message
Run Code Online (Sandbox Code Playgroud)
这可能只用一个Zap吗?
请注意,我无法向我的REST API添加多个webhook,因此我不能拥有多个触发器,并且我可以使用最多1个Zap.
任何来自论坛的帮助将不胜感激.