Same image URL with wordpress module " create a media item"

Hello, I’m working on this scenario.

Basically, it generates an article (text+featured image) with the OpenAI modules, and then it posts it to WordPress.

The scenario works. However, I am having troubles with the upload of the image generated by the openAI module. The image is correctly generated, but when it is uploaded in wordpress it has always the same URL: https://____.com/wp-content/uploads/output1.png

So every time the scenario is ran, a new featured image is generated and uploaded to wordpress, however as the URL is always the same. Therefore, is always shown the same picture, the first one that was uploaded and has the first URL “https://____.com/wp-content/uploads/output1.png”

So if I run 3 times the scenario, with different articles I would have 3 media uploaded with the following URLs:
run 1: URL of the uploaded image: https://.com/wp-content/uploads/output1.png
run 2: URL of the uploaded image: https://
.com/wp-content/uploads/output1.png
run 3: URL of the uploaded image: https://____.com/wp-content/uploads/output1.png

Many thanks in advance :slight_smile:

@danicanton1 you can select a dynamic variable from the previous module to provide a unique name to the image.

Excuseme, but I can’t see where, maybe it’s not here the place??

@danicanton1 use the Map in the first option and the map the name and data

If you need any further help, feel free to contact

@Automate_with_Rezwan OK, I tried to put it like this.

However, when I click in the “OK” button to save the changes, it returns to the HTTP - Get a File. I don’t understand why :thinking:

Ok it was a tiny thing as usual, here you can see it:

Hope it helps someone in the future :wink:

1 Like

Hey there @danicanton1 :wave:

Just thought I might jump in and say congrats on the great job you did with the help of @Automate_with_Rezwan.

Thank you very much for coming back here and sharing your solution with us. We deeply appreciate that you kept us in mind. This way our community stays neat and tidy :pray:.

Keep up the good work!

3 Likes