OK, that could work, or I guess I could set a paramater to ?openagent&unid= and handle the parameters in the agent.
the problem as I see this is that the agent will not get a handle to the current xpage, which means if I want the agent to fetch info from the xpage I need to pass this information using parameters.
thanks
Thomas