I’m trying to set up an automated workflow and I noticed that Zapier already has a trigger for detecting new followers on Twitter. What I want to know is whether I can use Zapier’s code step feature (either JavaScript or Python) as an action to connect with Twitter’s API and automatically send direct messages to each new person who follows my account. Has anyone successfully implemented this kind of automation before? I’m wondering if there are any limitations or specific requirements I should be aware of when trying to integrate Twitter’s messaging API through Zapier’s code functionality.
totally agree! the Twitter API can be a bit tricky with DMs for new followers. experienced some rate limits myself. def recommend doing some tests before rolling it out completely!
Built this exact automation last year - the code’s easy but you’ll hit major roadblocks. Zapier’s code step works fine for Twitter’s DM API (I used JavaScript with no problems). The real issue? Twitter’s spam detection is brutal. Doesn’t matter if they’re your followers - bulk automated DMs get flagged as spam every time. I spaced messages hours apart and still got caught. Worked perfectly for two weeks, then the warnings started. Better move: use Zapier to push new followers into a CRM, then manually message the valuable ones.
I tried this 6 months ago and hit some walls. The Zapier setup works fine technically, but Twitter’s API is super strict about automated DMs. They flag unsolicited DMs as spam - even to your own followers. Got my code working in Python through Zapier, sent maybe 20-30 DMs, then my developer account got flagged. Worked for a few days before Twitter killed it. If you’re gonna do this anyway, keep volume really low and only message followers who’ve actually engaged with your tweets recently. Also heads up - API v2 has different DM rate limits than the old version, so check which one you’re using.