Login
    • Dark
      Light

    Login

    • Dark
      Light

    Article summary

    Overview

    This event is received when an Agent logs in to Genesys Cloud with valid credentials.

    Pre-requisite

    The agent must register with a Genesys channel and be in the Logout state.

    Sequence Diagram

    Message Structure

    Request Parameters

    Value

    No request parameter

    Response Parameters

    Value

    channel

    Genesys

    topic

    Agent

    subtopic

    SetAgentState

    message

    JSON Object

    Message Parameters

    Parameter

    Data Type

    Description

    Sample Value

    event

    String

    The agent state value.

    Login,Logout,OnQueue, Available,Busy,Away,Break,Meal,Meeting,Training

    source

    String

    Static field. In Genesys, fixed events (values) are used for standard response fields.

    event

    data

    JSON Object

    Current agent data with default values.

    Data Parameters

    Parameter

    Data Type

    Description

    Sample Value

    name

    String

    The agent name.

    Test agent

    loginName

    String

    The Genesys agent log in value.

    testagent.a@domain.com

    state

    String

    Genesys system Presence value that indicates the current agent state, such as 'login' or 'logout'.

    Login,Logout,OnQueue, Available,Busy,Away,Break,Meal,Meeting,Training

    stateChangeTime

    String

    The current date and time value

    a729f683-06d0-47e6-bf74-7130e9bd29ed

    agentType

    String

    Agent type value

    alerting,connected,disconnected,ACW,terminated,held,dialing

    Sample Request

    No sample request

    Sample Response 1

     {
        "channel": "Genesys",
        "topic": "Agent",
        "subtopic": "SetAgentState",
        "message": {        
        "data": {        
            "name": "Test Agent",        
            "loginName": " testagent.a@testdomain.com",                
            "state": "login",        
            "stateChangeTime": "2024-03-14T12:36:39.702Z",
            "agentType": "not_routable"
        },
        "event": "login",
        "source": "event"
    }

    Sample Response 2

    {
        "channel": "Genesys",
        "topic": "Agent",
        "subtopic": "SetAgentState",
        "message": {        
        "data": {        
            "name": "Test Agent ",        
            "loginName": " testagent.a@testdomain.com",                
            "state": " On Queue",        
            "stateChangeTime": "2024-03-14T12:36:39.702Z",
            "agentType": "routable"
        },
        "event": "login",
        "source": "event"
    }

    Sample Response 3

    {
        "channel": "Genesys",
        "topic": "Agent",
        "subtopic": "SetAgentState",
        "message": {
            "data": {
                "name": "Test Agent",            
                "loginName": "testagent.a@testdomain.com",
                "state": "Available",
                "stateChangeTime": " 2024-03-21T09:55:10.080Z ",
                "agentType": "not_routable"
            },
            "event": "Available",
            "source": "event"
        }
    }

    Compatible Workspace Version

    3.19.2403 onwards


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.