User Block USER

Choose a tool for developing with an AI agent:

  • use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
  • use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation

The USER block displays the user's card within the attachment: name, avatar, and a link for navigation.

User Block

Block Parameters

Name
type

Description

NAME*
string

The name displayed in the block

AVATAR
string

Avatar URL. Absolute URLs (http://, https://) and relative paths from the root of Bitrix are allowed

LINK
string

URL for navigation when clicking on the block. It is preferable to use USER_ID, CHAT_ID, BOT_ID for navigation within the messenger

USER_ID
integer

Link to the Bitrix user

CHAT_ID
integer

Link to the Bitrix chat

BOT_ID
integer

Link to the Bitrix chatbot

NETWORK_ID
string

Link to the Bitrix24 Network user

AVATAR_TYPE
string

Type of avatar display. Allowed values: USER, CHAT, BOT

Example

How to Use Examples in Documentation

{
            USER: {
                NAME: 'John Smith',
                AVATAR: 'https://files.shelenkov.com/bitrix/images/avatar.png',
                LINK: 'https://shelenkov.com'
            }
        }
        
attach = {
            "USER": {
                "NAME": "Stefan Meier",
                "AVATAR": "https://files.shelenkov.com/bitrix/images/avatar.png",
                "LINK": "https://shelenkov.com",
            },
        }
        
[
            'USER' => [
                'NAME' => 'John Smith',
                'AVATAR' => 'https://files.shelenkov.com/bitrix/images/avatar.png',
                'LINK' => 'https://shelenkov.com'
            ]
        ]
        

Continue Learning