Passing custom guest attributes to Web Messaging widget via SDK

How do we properly inject custom guest attributes into the Genesys Cloud Web Messaging widget for authenticated users? We are using the Embeddable Client App SDK to build our custom agent desktop. I tried calling genesyscloud.widgets.messaging.setGuestAttributes with a JSON payload containing the user ID, but the attributes don’t show up in the conversation metadata on the agent side. Is there a specific timing issue with the widget initialization, or is the method name different in the latest SDK version?