ConversimpleAgent instance handles a single conversation session. For multiple concurrent conversations, you should create multiple agent instances. This one-to-one mapping ensures that conversation state is managed cleanly and that each conversation has its own isolated process.
Agent Lifecycle
The lifecycle of an agent is straightforward:- Initialization: You create an instance of your agent class, which inherits from
ConversimpleAgent. - Connection: The
agent.start()method establishes a WebSocket connection to the Conversimple platform. - Ready: The agent is ready to handle a conversation.
- Termination: The
agent.stop()method disconnects the agent from the platform.