Hi!
I have the below scenario:
at the beginning I have input data structure:
{
"hubspot": {
"deal_name": "MarioTEST3",
"contact_firstName": "Mario",
"contact_lastName": "Boss",
"contact_email": "xyz@gmail.com",
"company_name": "Philips"
},
"google_calendar": {
"summary": "title",
"start": {
"dateTime": "",
"timeZone": "Europe/Warsaw"
},
"end": {
"dateTime": "",
"timeZone": "Europe/Warsaw"
}
},
"chatgpt": {
"model": "gpt-3.5-turbo-16k",
"messages": [
{
"role": "user",
"content": "What is the weather today?"
}
]
}
}
then we have a router module that based on data structure decides which modules should be used
as you can see I have 8 webhook responses
each webhook returns the same data structure:
{
"chatgpt":{
"response":null,
"statusCode":-1
},
"hubspot":{
"dealId":"32490311555",
"dealLink":"https://app.hubspot.com/contacts/0000/deal/32490311555",
"statusCode":200
},
"google_calendar":{
"eventId":null,
"eventLink":null,
"statusCode":-1
}
}
I am wondering how I can improve my scenario to make it more flexible for connecting additional modules.
Maybe there is a way how to return data from many router paths into on JSON module having only one webhook response? It will simplify a lot my future development of this scenario.
Any ideas?
Best,
Mario