code: async function createContext(projectId, sessionId, contextId, lifespanCount) {
    // [START dialogflow_create_context]
    // Imports the Dialogflow library
    const dialogflow = require('dialogflow');
  
    // Instantiates clients
    const contextsClient = new dialogflow.ContextsClient();
  
    const sessionPath = contextsClient.sessionPath(projectId, sessionId);
    const contextPath = contextsClient.contextPath(
      projectId,
      sessionId,
      contextId
    );
  
    const createContextRequest = {
      parent: sessionPath,
      context: {
        name: contextPath,
        lifespanCount: lifespanCount,
      },
    };
  
    const responses = await contextsClient.createContext(createContextRequest);
    console.log(`Created ${responses[0].name} context`);
    // [END dialogflow_create_context]
  }
docs: ///////////////////////////////////////////////////////////////////////////// Operations for contexts /////////////////////////////////////////////////////////////////////////////