I have an application where users can a select objects. Those objects are linked to medias.
I want the current selected object’s media to be passed to an agent (dynamically, so if the object selected change, the media would change too).
Is it possible to pass a media dynamically to an AIP Agent from Workshop ?
How are your objects linked to the media? Is the media reference a property on the object? Or is the media reference contained in a different object type that’s linked to the initial object type?
As long as you have the contents of the media as a property on some object type, you can definitely do this! First, I would set up an object set application state variable on your agent in AIP Agent Studio. Then in Workshop I would set up the AIP Interactive Widget and configure the object set application variable to take in the user’s filtered object set. Now, back in AIP Agent Studio, you can configure ontology context (under retrieval context) to take in a variable input. That variable will be the object set application variable you created in Step 1.
Once your agent has ontology context configured with a variable object set, then it can use the contents of the media (as long as their content is on the object type) as context in each response. Let me know if you need any other help with this and I can send some screenshots walking through the flow.