Hi, I assume it's possible to integrate with Scraptio via the HTTP module in Activepieces. Have a look at the "POST /scrape" section here for the data you'd need to pass to it: scraptio.notion.site/How-to-use-Scraptio-with-REST-API-caf0b6d5c6e342cd9a3ac9062ab1ae6d - Otherwise there are plenty of other services such as Firecrawl.dev, ScrapingBee, ScrapeNinja, etc. that you'd probably be able to integrate with via the HTTP module. Alan
Yeah definitely - You've got a few different options. If you use a service like FAL.ai to generate the image they'll return a URL where you can get the image. If you want to upload it as a featured image in Wordpress then you'd use the HTTP request module to generate the FLUX image, then a HTTP module to get the file from that FAL.ai URL (this gets the file in binary format) then use "Create a media item" in the Wordpress module. You can then provide the Post ID within that request to automatically set that as the featured image for a post. For images within the article content there are two options: Either you can use the same approach of using the HTTP module to get the FLUX image and then "Create a media item" and then provide the returned URL into the post content (I've added images into the main post content in this video like so if you want to see an example: ua-cam.com/video/i-BizXt4jdY/v-deo.html) For images within the main article content, there is also an easier workaround where you don't have to manually upload every image. You can install a Wordpress plugin called "Auto Upload Images", then just place an image tag with the FAL.ai url within the article content, and the plugin will automatically download that image to your Wordpress server (I'm showing this in an upcoming video as part of a much bigger workflow - likely next week). Hope this helps! Alan
Thank you for this! I am getting an error with the JSON returning back from the HTTP module and I am rackingmy brain on it since I am still new to all of this. The error it is saying is {"detail":[{"type":"json_invalid","loc":["body",371],"msg":"JSON decode error","input":{},"ctx":{"error":"Invalid control character at"}}]}
Hi, that's probably caused by unexpected new line characters or spaces. So you can try to remove any of those as a starting point. If that's not working then try to just put in basic test JSON to see if that works... Like below just to see if the request is working. If you're still getting errors there are other things you might need to do. In this case we're just manually adding a prompt, if you're getting errors only when adding the prompt text dynamically from some other module (instead of just writing "a robot"), you might need to escape that text to remove any characters from the text that might cause issues with JSON. I can help with that if you're still having issues from there. Prompt to test: {"prompt": "A robot", "image_size": "landscape_16_9"}
@@TheAIAutomators I found that I had accidentally deleted the image prompt module so it was taking the full summary which had invalid characters for the JSON. Thank you!
Stay on the cutting edge, join our AI automation community 👉 www.theaiautomators.com/?C4
Wow, I had no idea you could use flux in automations! Thank you for sharing!
any alternative to scraptio but can be used on 'activepieces' automation builder?
Hi, I assume it's possible to integrate with Scraptio via the HTTP module in Activepieces. Have a look at the "POST /scrape" section here for the data you'd need to pass to it: scraptio.notion.site/How-to-use-Scraptio-with-REST-API-caf0b6d5c6e342cd9a3ac9062ab1ae6d - Otherwise there are plenty of other services such as Firecrawl.dev, ScrapingBee, ScrapeNinja, etc. that you'd probably be able to integrate with via the HTTP module.
Alan
@@TheAIAutomators awesome thank you very much!
No worries! Glad I could help
This free or no?
Is it possible to post the image directly to wordpress for example, without airtable ?
Yeah definitely - You've got a few different options. If you use a service like FAL.ai to generate the image they'll return a URL where you can get the image. If you want to upload it as a featured image in Wordpress then you'd use the HTTP request module to generate the FLUX image, then a HTTP module to get the file from that FAL.ai URL (this gets the file in binary format) then use "Create a media item" in the Wordpress module. You can then provide the Post ID within that request to automatically set that as the featured image for a post.
For images within the article content there are two options: Either you can use the same approach of using the HTTP module to get the FLUX image and then "Create a media item" and then provide the returned URL into the post content (I've added images into the main post content in this video like so if you want to see an example: ua-cam.com/video/i-BizXt4jdY/v-deo.html)
For images within the main article content, there is also an easier workaround where you don't have to manually upload every image. You can install a Wordpress plugin called "Auto Upload Images", then just place an image tag with the FAL.ai url within the article content, and the plugin will automatically download that image to your Wordpress server (I'm showing this in an upcoming video as part of a much bigger workflow - likely next week).
Hope this helps!
Alan
@@TheAIAutomators Wow Thank you so much Alan, tbh I don't expect to get detailed instructions like this
You're very welcome! Glad I could help
Thank you for this! I am getting an error with the JSON returning back from the HTTP module and I am rackingmy brain on it since I am still new to all of this. The error it is saying is {"detail":[{"type":"json_invalid","loc":["body",371],"msg":"JSON decode error","input":{},"ctx":{"error":"Invalid control character at"}}]}
Hi, that's probably caused by unexpected new line characters or spaces. So you can try to remove any of those as a starting point. If that's not working then try to just put in basic test JSON to see if that works... Like below just to see if the request is working. If you're still getting errors there are other things you might need to do. In this case we're just manually adding a prompt, if you're getting errors only when adding the prompt text dynamically from some other module (instead of just writing "a robot"), you might need to escape that text to remove any characters from the text that might cause issues with JSON. I can help with that if you're still having issues from there. Prompt to test: {"prompt": "A robot", "image_size": "landscape_16_9"}
@@TheAIAutomators I found that I had accidentally deleted the image prompt module so it was taking the full summary which had invalid characters for the JSON. Thank you!
Ah I see - glad you got it working!