# OpenAi categorize Wordpress Posts

**URL:** <https://community.make.com/t/openai-categorize-wordpress-posts/21915>\
**Category:** Questions\
**Tags:** wordpress, open-ai\
**Created:** [December 14, 2023, 5:35pm UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915 "2023-12-14T17:35:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![danicanton1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/danicanton1/32/20811_2.png) [@danicanton1](https://community.make.com/u/danicanton1)\
**Post date:** [December 14, 2023, 5:35pm UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915/1 "2023-12-14T17:35:27Z")

</div>

Hello, I have an scenario that with the help of different request to OpenAI publishes content in wordpress with categories and featured image, everything created by the AI.

 ![tag2](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/7/d7da77c9505d125c521578b56e944645a2692b02.png)

Now, I also want to **add automatically tags to the wordpress post**. I have the following response from the OpenAI module:

 ![tag](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/5/15471722a09c3691b9460b5b107844043cfc29c3.png)

However, I don’t know how to transform multiple text, separated by coma in variables to add to the wordpress module create tag → search tag → create a post with tags.

¿Could anyone help me a little bit with that? At least give a path to keep investigating how to do it.

I really apreciate this make community, have a nive afternoon 🙂

Dani

---

<div class="post-metadata">

**Author:** ![Amadio\_Gabriel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/amadio_gabriel/32/17547_2.png) [@Amadio\_Gabriel](https://community.make.com/u/Amadio_Gabriel)\
**Post date:** [December 14, 2023, 8:35pm UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915/2 "2023-12-14T20:35:15Z")

</div>

Hi there,

According to my understanding, you would like the highlighted tags to be displayed separately in the output?

If yes, the “[split](https://www.make.com/en/help/functions/string-functions#split--text--separator-)” function is the way to go.

It will give tags separately in “array” form and then using the “get” function you can get it in a simpler format.

🙂

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 15, 2023, 1:51am UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915/3 "2023-12-15T01:51:10Z")

</div>

You have a period at the end of the content too, so you’ll have to `replace()` that with an `{{emptystring}}` first before you use `split()`.

---

<div class="post-metadata">

**Author:** ![danicanton1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/danicanton1/32/20811_2.png) [@danicanton1](https://community.make.com/u/danicanton1)\
**Post date:** [December 22, 2023, 2:57pm UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915/4 "2023-12-22T14:57:21Z")

</div>

Hello there, after trying different thing it worked out with that scenario:

 ![split](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/b/8b57dd648341ba2ba2438ae08b8ecf462138e522.png)

Problems I have faced:

- When a tag was already created.

For that reason I put a router, so first new tags are created and the ones that are already created go to the “ignore” module. Maybe there is a more elegant way to solve it.

Then with all the tags involved in the scenario created, I search it and with the array aggregator I can add it to wordpress.

If someone finds a better way please update the answer.

Thanks to everyone that helped.

---

<div class="post-metadata">

**Author:** ![danicanton1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/danicanton1/32/20811_2.png) [@danicanton1](https://community.make.com/u/danicanton1)\
**Post date:** [December 22, 2023, 2:58pm UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915/5 "2023-12-22T14:58:12Z")

</div>

Thanks it helped a lot!

---

<div class="post-metadata">

**Author:** ![danicanton1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/danicanton1/32/20811_2.png) [@danicanton1](https://community.make.com/u/danicanton1)\
**Post date:** [December 22, 2023, 2:58pm UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915/6 "2023-12-22T14:58:27Z")

</div>

Thanks, it helped me a lot!

---

<div class="post-metadata">

**Author:** ![vendy](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/vendy/32/12635_2.png) [@vendy](https://community.make.com/u/vendy)\
**Post date:** [December 27, 2023, 7:54am UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915/7 "2023-12-27T07:54:40Z")

</div>

Hey there @danicanton1 👋

just wanted to jump in and congratulate you on solving this one out with the assistance of @samliew and @Amadio_Gabriel. 👏

Thank you very much for returning to us with the final solution. We deeply appreciate you keeping us in mind. 🙏

Great job!

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 5, 2024, 3:08pm UTC](https://community.make.com/t/openai-categorize-wordpress-posts/21915/8 "2024-01-05T15:08:09Z")

</div>


