Best answer

How can I use python scripts from my GitHub repo inside an automation in Zapier?

  • 5 July 2024
  • 1 reply
  • 10 views

Hi,

I’m trying to figure out how can i use python scripts from my github repo inside an automation in Zapier.
My idea is as following:

  1. receive an email into my gmail inbox
  2. get the a specific script from my github repository
  3. run the script on the file i got in step 1
  4. upload the output file from step 3 to AWS S3

The scripts include libraries such as pandas, regex, numpy, pypdf, codecs, dateutil.
Thank you!

icon

Best answer by SamB 8 July 2024, 10:25

View original

1 reply

Userlevel 7
Badge +11

Hi and welcome to the Community @devenv! 🎉

There is a Code by Zapier action available that has the ability to run Python code, but at present it can’t reference external libraries. We do have an existing feature request for the ability to use external libraries so I’ve gone ahead and added your vote to that. I can’t make any promises around when it will be possible to use external libraries but we’ll definitely email you once it is!

That said, there was a workaround reported where a customer was able to use an AWS Lambda Invoke Function and a second Zap with a Webhooks by Zapier Catch Hook trigger as a workaround. The function in AWS Lambda performed the necessary code that referenced the external libraries, and then sent the data over to the necessary webhook URL which triggered the second Zap. From there they were able to continue their workflow in the second Zap. 


Hopefully that workaround will work for you too. If you run into any further trouble or if there’s anything else I can assist with in the meantime do let me know! 🙂

Reply