code: function sessionCreated(err, session) {
    if (err) throw err
  
    console.log("session created, creating agent")
  
    var agentInfo = {name: "echoer", title: "an echo agent" }
  
    // create the agent, calling `agentCreated` when done
    session.createAgent(agentInfo, function(err, agent) {
      agentCreated(session, err, agent)
    })
  }
docs: --------------------------------------------------------- session was created (or error)