Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ADD MEMBER Keywords

Manage team and group membership within bots.

Keywords

KeywordPurpose
ADD_MEMBERAdd user to a group with role
REMOVE_MEMBERRemove user from group
CREATE_TEAMCreate a new team
LIST_MEMBERSList group members

ADD_MEMBER

result = ADD_MEMBER group_id, user_email, role

Parameters

ParameterTypeDescription
group_idStringTeam or group identifier
user_emailStringEmail of user to add
roleStringRole: “admin”, “member”, “viewer”

Example

result = ADD_MEMBER "team-sales", "john@company.com", "member"
TALK "Added user: " + result

REMOVE_MEMBER

result = REMOVE_MEMBER "team-sales", "john@company.com"

CREATE_TEAM

members = ["alice@company.com", "bob@company.com"]
result = CREATE_TEAM "Project Alpha", "Development team", members

LIST_MEMBERS

members = LIST_MEMBERS "team-sales"
FOR EACH member IN members
    TALK member.email + " - " + member.role
NEXT

Roles

RolePermissions
adminFull control, manage members
memberStandard access
viewerRead-only access

See Also