How to convert JSON to text

Hello,

I want to convert the JSON output from my Webhook, which collects the title of article into a string of text. The idea is that It will be further used by ChatGPT to create a response based on the prompt.

The scenario is built as follows:

Based on the output of the webhook it seems that the data is provided in JSON:

My problem is that I can’t just use the content of the article title in ChatGPT whenever I try to paste it into the field:

Whenever I try to launch the ChatGPT module, it gives me an additional field to fill, as if the real title name was not provided successfully.

Could you please advise me on how to move the string of text into ChatGPT?

1 Like

Welcome to the community!

Assuming that your title is the text between “{{ }}” curly braces, you can use substring function to extract the text.

I created this webhook:

Used this formula to extract text:

The output is as follows:

1 Like

Welcome to the Make community!

You simply have to run the full scenario, not just a single module.

For more information, please complete the Make Academy.

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Hi @Robert_Kozlowski

When running the ChatGPT module, you’ll need to manually enter a title in the field that appears. However, if you run the entire scenario, it will automatically pull the title from the webhook, provided the webhook contains data.

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation