Nekton will write the code using GPT4 that will use Twitter API to post the tweet. It will also handle Twitter authentication and get your permission to post.
It's likely that GPT generated code to work with old Twitter API that was shut down recently. You can try adding the following to your step description to fix this:
Use twitter V2 api and oauth scope "tweet.write", "tweet.read", "users.read".