1. Check the caller and team
Callget_current_user with:
isAuthenticated, userId, teamId, permissions, and warnings. Confirm that the returned user and team are the ones you intend to use. Keep the returned userId for the sender check below.
If the call fails or the identity is wrong, resolve the connection or account selection before continuing. Do not assume the current user is the intended sender.
2. Inspect the reported scopes
Callget_auth_scopes with:
caller, scopes, and warnings. Each returned scope includes its name, a granted value, and a description. The response describes scopes inferred from the current request context. Treat it as setup information; verify the result of any later action separately.
3. Load the sender guidance
Callget_guide with:
4. Identify the intended team member
Calllist_team_members with:
items. Match their returned userId or email; a display name alone may be ambiguous. If the caller will be the sender, match the userId from step 1.
Inspect that member’s access, capabilities, and returned connected-account details. For LinkedIn, locate capabilities.isLinkedinReady and capabilities.isLinkedinActionsEnabled. Record the actual values instead of inferring readiness from an account name.
If the member is missing, the identity is ambiguous, or the returned fields do not satisfy the guide’s requirements, resolve that issue before preparing an action. Do not silently choose a different sender. The response also includes uiLinks for account connection and team management.
5. Load the workflow and review guidance
For the one-contact workflow, callget_guide with:
Review the result
You should now have:- The intended caller and team, with any returned warnings reviewed.
- The intended sender’s exact user ID and reported account capabilities.
- The current sender, one-contact workflow, and task guides.