I’m trying to create Wordpress posts with multiple random tags but can’t seem to figure out how to make chatgpt result become data mapping or functions like this
{{add(emptyarray; 17; 22; 8; 14; 6; 20; 11; 24; 7; 21; 10; 19; 9; 15; 18)}}.
when i use chatgpt result which {{43.result}}, it will become something like this
“tags”: [
“{{add(emptyarray; 7; 19; 12; 23; 6; 14; 21; 8; 5; 18; 24; 9; 17; 15; 20)}}”
]
Can someone explain and help me with this, really appreciate your help.
Hello! Welcome to the Make community!
What ChatGPT model are you using?
From the latest models, you can ask ChatGPT to return a result in JSON format. So you can explicitly say “return a JSON document that contains an array called "tags" that contains the list of tags
”
Then you use a JSON/Parse JSON module and you map “result”. The output of the JSON should be mappable as-is in Wordpress (but I can’t test).
If you are detailed enough, you can ask it to generate exactly what Wordpress needs.
Example
Benjamin
3 Likes
thank you for your reply and solution😭 it works flawlessly now. Thank you once again.
3 Likes