Update available outputs from "Receive a Webhook" trigger

(mario menti) #1

Hi there,

I have added some additional data that my API sends to a “receive a webhook” trigger, but I can’t for the life of me figure out how to get hold of these new elements as outputs from that trigger. I’ve tried copying the flow, which creates a new webhook, and then post the new JSON format to that webhook, but whenever I edit an item and try to refer to any of the new elements that should now be available, they don’t seem to appear. Am I missing something?

As an example, I am sending this JSON to the webhook:

{“response_path”:“5a3942c0f615580038a227ac/c/CH9fbf09706aca4eaf8eaec6e63d33d6c3”,“message_type”:“ChoiceQuestion”,“section”:"",“block”:“SO 1.1”,“store_data”:false,“content”:“There is also a drop down menu on the left that might be useful as we chat!”,“same_as”:null,“buttons”:[{“text”:" Benefit Support",“linkto”:“Ben 1.1”,“media_url”:“Benefits.png”,“title”:“Benefits”,“subtitle”:“Help with your benefits or finding out if you can get other ones”},{“text”:" Employment Support",“linkto”:“EMP 1.1”,“media_url”:“Employment.png”,“title”:“Employment”,“subtitle”:“Create a CV, Cover Letter, apply for jobs…and more”},{“text”:" Start saving now",“linkto”:“MS 1.1”,“media_url”:“Money.png”,“title”:“All about money”,“subtitle”:“Saving tips and resources, dealing with taxes, debt and more”},{“text”:“Employment Rights”,“linkto”:“WR INTRO1.0”,“media_url”:“Employmentrights.png”,“title”:" Employment Rights",“subtitle”:" Find out what your rights are as a worker"}]}

Previously the JSON only contained the “text” and “linkto” elements within “buttons”, and even after posting the above JSON to the new webook URL, the text and linkto elements are the only outputs available/visible to me, trying to add title, media_url or subtitle just results in a “Missing Outputs” error.

Am I missing something here?
Thanks!

Mario.

(Karen Barker) #2

Hi Mario,

Rather than copying the flow can you turn the original flow off, delete the trigger and then re-add the webhook trigger. Make sure when you’re testing the webhook you send the full request through. This should ensure we completely forget the previous setup and start fresh. :slight_smile:

(mario menti) #3

Ah, thanks Karen, this seems to have worked. It’s a bit of a shame that you then have to re-specify all the outputs for the remaining items in this flow that were based on the original trigger that was deleted, but I can live with that… :slight_smile: