Thanks for letting me know what i need to learn. I will add some samples here.
For this five documents, two should be returned.
{"_id":{"$oid":"622f2cd4075c226bde0ba966"},"project_id":"sorteringshatt-dgwo","name":"2022-03-14 12:53:52.712155","inputContexts":[],"originalRequestSource":"SORTERINGSHATT_MAI","v2Response":{"responseId":"d317ddda-fbe5-4511-bf2b-0a985a61ecf1-53cb9be6","queryResult":{"queryText":"phase_1_name_mai","allRequiredParamsPresent":true,"fulfillmentText":"Hej, Välkommen till denna upplevelse. Tillsammans ska vi undersöka ditt innersta väsen. Mitt namn är MAI, vad heter du?","fulfillmentMessages":[{"text":{"text":["Hej, Välkommen till denna upplevelse. Tillsammans ska vi undersöka ditt innersta väsen. Mitt namn är MAI, vad heter du?"]},"platform":0}],"outputContexts":[{"name":"projects/sorteringshatt-dgwo/agent/sessions/2022-03-14 12:53:52.712155/contexts/phase1intro-followup","lifespanCount":2},{"name":"projects/sorteringshatt-dgwo/agent/sessions/2022-03-14 12:53:52.712155/contexts/phase1name-followup","lifespanCount":2}],"intent":{"name":"projects/sorteringshatt-dgwo/agent/intents/47119b7f-827c-4f4f-a304-5bbf23d53f39","displayName":"Phase 1: Intro MAI","webhookState":0,"priority":0,"isFallback":false,"mlDisabled":false,"liveAgentHandoff":false,"endInteraction":false,"inputContextNames":[],"events":[],"trainingPhrases":[],"action":"","outputContexts":[],"resetContexts":false,"parameters":[],"messages":[],"defaultResponsePlatforms":[],"rootFollowupIntentName":"","parentFollowupIntentName":"","followupIntentInfo":[]},"intentDetectionConfidence":1,"languageCode":"sv","speechRecognitionConfidence":0,"action":"","webhookSource":""},"webhookStatus":{"code":0,"message":"","details":[]},"outputAudioConfig":{"audioEncoding":1,"sampleRateHertz":44100,"synthesizeSpeechConfig":{"speakingRate":1,"voice":{"name":"sv-SE-Wavenet-D","ssmlGender":0},"pitch":0,"volumeGainDb":0,"effectsProfileId":[]}},"outputAudio":""},"responseTime":"2022-03-14 12:53:56.138199","logType":"PRODUCTION","updated":false,"__v":0}
{"_id":{"$oid":"622f2ce0075c226bde0ba96a"},"project_id":"sorteringshatt-dgwo","name":"2022-03-14 12:53:52.712155","inputContexts":[],"originalRequestSource":"SORTERINGSHATT_MAI","v2Response":{"responseId":"1faf96ba-7fb1-4741-87a1-d67f4ccaeefe-53cb9be6","queryResult":{"queryText":"Fredrik","action":"Phase1Intro.Phase1Intro-custom","parameters":{"person":{"name":"Fredrik"}},"allRequiredParamsPresent":true,"fulfillmentText":"Hejsan Fredrik. Angenämt! Framför oss har vi ett litet personlighetstest för att avgöra vilket värdeord du tillhör. Testet kommer ta några minuter att genomföra.","fulfillmentMessages":[{"text":{"text":["Hejsan Fredrik. Angenämt! Framför oss har vi ett litet personlighetstest för att avgöra vilket värdeord du tillhör. Testet kommer ta några minuter att genomföra."]},"platform":0}],"outputContexts":[{"name":"projects/sorteringshatt-dgwo/agent/sessions/2022-03-14 12:53:52.712155/contexts/phase1name-followup","lifespanCount":1,"parameters":{"person.original":"Fredrik","person":{"name":"Fredrik"}}},{"name":"projects/sorteringshatt-dgwo/agent/sessions/2022-03-14 12:53:52.712155/contexts/phase1intro-followup","lifespanCount":1,"parameters":{"person":{"name":"Fredrik"},"person.original":"Fredrik"}}],"intent":{"name":"projects/sorteringshatt-dgwo/agent/intents/63425b74-2641-498e-8435-23b9b462439b","displayName":"Phase 1: Intro - myNameIs","endInteraction":true,"webhookState":0,"priority":0,"isFallback":false,"mlDisabled":false,"liveAgentHandoff":false,"inputContextNames":[],"events":[],"trainingPhrases":[],"action":"","outputContexts":[],"resetContexts":false,"parameters":[],"messages":[],"defaultResponsePlatforms":[],"rootFollowupIntentName":"","parentFollowupIntentName":"","followupIntentInfo":[]},"intentDetectionConfidence":1,"diagnosticInfo":{"end_conversation":true},"languageCode":"sv","speechRecognitionConfidence":0,"webhookSource":""},"webhookStatus":{"code":0,"message":"","details":[]},"outputAudioConfig":{"audioEncoding":1,"sampleRateHertz":44100,"synthesizeSpeechConfig":{"speakingRate":1,"voice":{"name":"sv-SE-Wavenet-D","ssmlGender":0},"pitch":0,"volumeGainDb":0,"effectsProfileId":[]}},"outputAudio":""},"responseTime":"2022-03-14 12:54:08.498651","logType":"PRODUCTION","updated":false,"__v":0}
{"_id":{"$oid":"6228bb45075c226bde0ba1d1"},"project_id":"sorteringshatt-dgwo","name":"2022-03-09 15:34:42.939426","inputContexts":[],"originalRequestSource":"SORTERINGSHATT_KAI","v2Response":{"responseId":"b907a90a-1432-4fd1-b146-3a92e2a7e163-53cb9be6","queryResult":{"queryText":"phase_2_perfectsaturday","allRequiredParamsPresent":true,"fulfillmentText":"Hur skulle du beskriva den perfekta lördagen?","fulfillmentMessages":[{"text":{"text":["Hur skulle du beskriva den perfekta lördagen?"]},"platform":0}],"outputContexts":[{"name":"projects/sorteringshatt-dgwo/agent/sessions/2022-03-09 15:34:42.939426/contexts/phase2simplequestion3-perfectsaturday-followup","lifespanCount":2}],"intent":{"name":"projects/sorteringshatt-dgwo/agent/intents/239938ed-0d10-429b-9802-ae868dc37a09","displayName":"Phase 2: Simple Question 3 - Perfect Saturday","webhookState":0,"priority":0,"isFallback":false,"mlDisabled":false,"liveAgentHandoff":false,"endInteraction":false,"inputContextNames":[],"events":[],"trainingPhrases":[],"action":"","outputContexts":[],"resetContexts":false,"parameters":[],"messages":[],"defaultResponsePlatforms":[],"rootFollowupIntentName":"","parentFollowupIntentName":"","followupIntentInfo":[]},"intentDetectionConfidence":1,"languageCode":"sv","speechRecognitionConfidence":0,"action":"","cancelsSlotFilling":false,"webhookSource":""},"webhookStatus":{"code":0,"message":"","details":[]},"outputAudioConfig":{"audioEncoding":1,"sampleRateHertz":44100,"synthesizeSpeechConfig":{"speakingRate":1,"voice":{"name":"sv-SE-Wavenet-E","ssmlGender":0},"pitch":0,"volumeGainDb":0,"effectsProfileId":[]}},"outputAudio":""},"responseTime":"2022-03-09 15:35:49.121453","logType":"PRODUCTION","updated":false,"__v":0}
{"_id":{"$oid":"6228bb4d075c226bde0ba1d3"},"project_id":"sorteringshatt-dgwo","name":"2022-03-09 15:34:42.939426","inputContexts":[],"originalRequestSource":"SORTERINGSHATT_KAI","v2Response":{"responseId":"413e5d0b-fdfd-4a3b-8b4b-544e07417032-53cb9be6","queryResult":{"queryText":"utan planer","action":"Phase2SimpleQuestion3-PerfectSaturday.Phase2SimpleQuestion3-PerfectSaturday-fallback","allRequiredParamsPresent":true,"fulfillmentText":"Vilken lördag!","fulfillmentMessages":[{"text":{"text":["Vilken lördag!"]},"platform":0}],"outputContexts":[{"name":"projects/sorteringshatt-dgwo/agent/sessions/2022-03-09 15:34:42.939426/contexts/phase2simplequestion3-perfectsaturday-followup","lifespanCount":1},{"name":"projects/sorteringshatt-dgwo/agent/sessions/2022-03-09 15:34:42.939426/contexts/__system_counters__","lifespanCount":1,"parameters":{"no-input":0,"no-match":1}}],"intent":{"name":"projects/sorteringshatt-dgwo/agent/intents/d1eda7c3-cf96-459c-abab-b937690aa911","displayName":"Phase 2: Simple Question 3 - Perfect Saturday - fallback","isFallback":true,"endInteraction":true,"webhookState":0,"priority":0,"mlDisabled":false,"liveAgentHandoff":false,"inputContextNames":[],"events":[],"trainingPhrases":[],"action":"","outputContexts":[],"resetContexts":false,"parameters":[],"messages":[],"defaultResponsePlatforms":[],"rootFollowupIntentName":"","parentFollowupIntentName":"","followupIntentInfo":[]},"intentDetectionConfidence":1,"diagnosticInfo":{"end_conversation":true},"languageCode":"sv","speechRecognitionConfidence":0,"cancelsSlotFilling":false,"webhookSource":""},"webhookStatus":{"code":0,"message":"","details":[]},"outputAudioConfig":{"audioEncoding":1,"sampleRateHertz":44100,"synthesizeSpeechConfig":{"speakingRate":1,"voice":{"name":"sv-SE-Wavenet-E","ssmlGender":0},"pitch":0,"volumeGainDb":0,"effectsProfileId":[]}},"outputAudio":""},"responseTime":"2022-03-09 15:35:57.307794","logType":"PRODUCTION","updated":false,"__v":0}
{"_id":{"$oid":"62289ea1075c226bde0ba1bb"},"project_id":"sorteringshatt-dgwo","name":"2022-03-09 13:31:16.723215","inputContexts":[],"originalRequestSource":"SORTERINGSHATT_KAI","v2Response":{"responseId":"2d9530a4-31ba-4ab3-a6b7-f101618b909a-53cb9be6","queryResult":{"queryText":"phase_3_outro","allRequiredParamsPresent":true,"fulfillmentText":"Jag tycker att vi tar och går vidare till den sista fasen av testet!","fulfillmentMessages":[{"text":{"text":["Jag tycker att vi tar och går vidare till den sista fasen av testet!"]},"platform":0}],"intent":{"name":"projects/sorteringshatt-dgwo/agent/intents/9f93a04f-4868-45d5-8824-dae8b81e3d7e","displayName":"Phase 3: Outro","endInteraction":true,"webhookState":0,"priority":0,"isFallback":false,"mlDisabled":false,"liveAgentHandoff":false,"inputContextNames":[],"events":[],"trainingPhrases":[],"action":"","outputContexts":[],"resetContexts":false,"parameters":[],"messages":[],"defaultResponsePlatforms":[],"rootFollowupIntentName":"","parentFollowupIntentName":"","followupIntentInfo":[]},"intentDetectionConfidence":1,"diagnosticInfo":{"end_conversation":true},"languageCode":"sv","speechRecognitionConfidence":0,"action":"","cancelsSlotFilling":false,"webhookSource":"","outputContexts":[]},"webhookStatus":{"code":0,"message":"","details":[]},"outputAudioConfig":{"audioEncoding":1,"sampleRateHertz":44100,"synthesizeSpeechConfig":{"speakingRate":1,"voice":{"name":"sv-SE-Wavenet-E","ssmlGender":0},"pitch":0,"volumeGainDb":0,"effectsProfileId":[]}},"outputAudio":""},"responseTime":"2022-03-09 13:33:36.821703","logType":"PRODUCTION","updated":false,"__v":0}
I hope I did it correctly.