Skip to main content
Question

How to map this response to a custom field?

  • 10 February 2024
  • 5 replies
  • 143 views

So i am calling an api in the external request module, this is my response mapping:

$.data[?(@.message.status == 'finished_successfully' && @.message.metadata.is_complete == true)].message.content.parts

and this is the full response:
 

data: {"message": {"id": "786ccf0b-3f07-4743-a55a-5f45b5a980d2", "author": {"role": "system", "name": null, "metadata": {}}, "create_time": null, "update_time": null, "content": {"content_type": "text", "parts":  ""]}, "status": "finished_successfully", "end_turn": true, "weight": 0.0, "metadata": {"is_visually_hidden_from_conversation": true}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "08627ffb-206e-48c3-8a0c-eb9dc9120cc5", "author": {"role": "system", "name": null, "metadata": {}}, "create_time": null, "update_time": null, "content": {"content_type": "text", "parts": ""]}, "status": "finished_successfully", "end_turn": null, "weight": 1.0, "metadata": {"is_visually_hidden_from_conversation": true}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6", "author": {"role": "user", "name": null, "metadata": {}}, "create_time": 1707591408.750635, "update_time": null, "content": {"content_type": "text", "parts": "test"]}, "status": "finished_successfully", "end_turn": null, "weight": 1.0, "metadata": {"request_id": "853692ff7e6ba70c-PHX", "timestamp_": "absolute", "message_type": null}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": ""]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo!"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je help"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe w"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woon"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonru"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruim"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte?"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zo"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis,"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appart"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement,"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, k"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders?"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in wel"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou je"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou je willen"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou je willen won"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou je willen wonen"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou je willen wonen?"]}, "status": "in_progress", "end_turn": null, "weight": 1.0, "metadata": {"citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou je willen wonen?"]}, "status": "finished_successfully", "end_turn": true, "weight": 1.0, "metadata": {"finish_details": {"type": "stop", "stop_tokens": 100260]}, "citations": ], "gizmo_id": "g-PADYNEGf7", "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou je willen wonen?"]}, "status": "finished_successfully", "end_turn": true, "weight": 1.0, "metadata": {"finish_details": {"type": "stop", "stop_tokens": 100260]}, "citations": ], "gizmo_id": "g-PADYNEGf7", "is_complete": true, "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}
data: {"message": {"id": "e483b80d-d49b-4a12-a5c4-ebc9462e5ec9", "author": {"role": "assistant", "name": null, "metadata": {}}, "create_time": 1707591408.784468, "update_time": null, "content": {"content_type": "text", "parts": "Hallo! Hoe kan ik je helpen met het vinden van je nieuwe woonruimte? Zoek je een huis, appartement, kamer of iets anders? En in welke stad of plaats zou je willen wonen?"]}, "status": "finished_successfully", "end_turn": true, "weight": 1.0, "metadata": {"finish_details": {"type": "stop", "stop_tokens": 100260]}, "citations": ], "gizmo_id": "g-PADYNEGf7", "is_complete": true, "message_type": "next", "model_slug": "gpt-4-gizmo", "parent_id": "3f7be7c8-206a-4026-9ee7-f394ee7c5ef6"}, "recipient": "all"}, "conversation_id": "a740b7c2-a97c-4174-a6a1-6cb120aafb69", "error": null}

It is a chatgpt API which keeps processing, however the custom field does not get set with the correct response. If anybody can point me in the direction of a correct jsonpath that would be very very helpfull 🙏

 

Thank you, 

Tom

https://support.manychat.com/support/solutions/articles/36000440957-chatgpt-integration


Thank you but this is a different endpoint through goapi.ai. As the default openai integration does not support custom gpts. So the question is how to get the complete answer only?


Cheif are you using Manychat reesponse format like this 

 

 


Hey Tom,

Not sure what you want to do here, but I have solved OpenAI's Assistants API + ManyChat.

Ping me if that's what you're looking for.

 

As for your question, I couldn't figure out exactly what you need…

But, looking at the mapping you're trying, you may have better trying to do 3 separate mappings and then using Conditions + ManyChat logic to do the rest.

For example:

  1. $.data.message.metadata.is_complete > map this to a custom field
  2. $.data.message.metadata.status > this to another
  3. $.data.message.content.parts > this to another

Then if 1 == "finished_successfully" and 2 == TRUE, you continue with your logic.

Hope this helps!!

 


I have the same problem, manychat is mapping wrong.


Reply