Hello all - I’m quite new to using Zapier’s store and StoreClient but understand python at a mediate level. My use case is to alert of any new messages from external users (customers) within a five minute window per channel. I am trying to create a zap that is dynamic as we have an infinite combination of external channels at any one time.
So far my zap is as follows:
- Gather all new messages
- Filter out any internal user messages
- Using Zap Store, set values for Channel Id and Ts Time
- Get Storage Secret
- Use Python to compare timestamps of current and most recent messages within a channel and return true if within five minutes of each other.
This is where I’d like to be able to compare the row prior for each channel. I would normally use pandas but I’m unsure if that’s overkill, but most importantly I’m not sure if/how StoreClient.get_many handles the values. It’s really unclear even when I return the data as output. Any tips in the right direction greatly appreciated!
EDIT: I found using https://store.zapier.com/api/records?secret=<your-secret> very helpful for viewing the format of the data. Back to tinkering on this, if anyone has ideas on how to solve let me know otherwise I’ll post my solution once I find it :)