I have a scenario that uses Chat GPT and Dalle to create a wordpress post and featured image. It works great, but I would like to be able to share the post to my twitter page after it is published since wordpress doesn’t have an integration built in for that. How do I make that work? I attached my blueprint if that helps. I’d be fine if it was just a simple post like maybe just the blog article’s title + link to the blog post on my site, doesn’t have to be too fancy. I just can’t get it to work and not sure what I’m missing.
blueprint.json (123.4 KB)
You may get a better answer if you provide a Blueprint!
Oops, I forgot to add that, it’s attached now
Add the X API module after the Create a post module of Wordpress. It seems to me that the necessary information should be taken from the Create a post response and passed to the X API, but can’t it be done?
Thanks, I think maybe it is an issue with Twitter, for some reason it won’t let me connect to my twitter api account. I put in my API key and it says there’s a problem connecting.
I was able to get my connection sorted out, now it looks like it’s working however what I want it to do is take the URL of the Wordpress post it just created, and then just post that URL to X. Not sure where I can get that URL from? The only thing it can pull from my wordpress Create a Post module is Post ID and that didn’t work.
After creating a Wordpress article, you can use the Get a Post Module of Wordpress to get the article from the ID so you can get the Slug and you can create a URL to the article.
Reference: Pages – REST API Handbook | Developer.WordPress.org