I'm using dialogflow's fulfilment. When an intent is matched, there is a function in fulfilment that sets a parameter for the next intent via the input-context. In this case the user gives their name and i want to store the name as a parameter. What I don't quite get is how long the name will last as a parameter for that particular context? Because I don't really want to have to set the name repeatedly.
function nameFunc(agent)
{
const name = request.body.queryResult.parameters.name;
agent.setContext({
"name": 'live-context',
"lifespan": 1,
"parameters": {
"name": name,