3. 채팅하기 버튼을 만들고 싶어요.

  1. 관리자 웹 > 환경 설정 > 좌측 '관리자 웹 설정' 아래 '소켓 설정'에서 소켓 사용 여부를 활성화시킨 후 앱을 재실행해 주세요. (이미 활성화되어 있는 경우, 2번부터 진행해 주세요.)

  2. 관리자 웹 > 앱 설정 > 좌측 메뉴바에서 원하는 메뉴(메타) 선택 > 원하는 화면을(ex. 목록 화면, 상세 화면) 선택해 주세요.

  3. 버튼 블록을 추가하고, 우측 사이드바에서 ‘액션/체인’을 선택해 '액션 추가'를 클릭해 주세요.

  4. 액션 타입에 ‘1:1 채팅방으로 이동(makeDirectChatRoom)’을 선택하고, 유저 정보 항목에 알맞은 유저 데이터의 항목ID를 입력해 주세요.(ex. _createUser / 반드시 유저 정보 항목에 있는 데이터를 선택해 주세요.)

  5. 버튼의 블록 속성에서 스타일 설정으로 버튼의 크기와 위치를 조절할 수 있어요.

  6. 변경 사항을 저장해 주세요.

#소켓 설정, #소켓 사용 여부, #액션/체인, #액션 추가, #액션 타입, #1:1 채팅방으로 이동, #채팅 기능, #채팅하기 버튼 만들기

2023.08.08 Jinny

I would like to create a button to initiate a chat.

  1. Access Administrator Web Settings > Development Mode > Settings, In order to enable the socket option in "Socket Settings" located in the left side of the web. Once you are enabled socket option please restart the app. (If it's already enabled, proceed to step 2.)

  2. Access the Administrator Web > Development Mode > App Settings. From the left menu bar, choose the desired menu (meta), and then select the specific page you require (e.g., inventory page, detailed page).

  3. To add building blocks for the button, click the 'Action/Chain' in the rightmost sidebar and then click 'Add Action'.

  4. Choose 'Transferring to 1:1 chat (makeDirectChatRoom)' as the action type, and input the item ID of the user data that pertains to the user information item (e.g., _createUser / ensure you select the data within the user information item).

  5. You have the option to modify the button's size and position using the style and properties available in the building block settings.

  6. Please remember to save your changes.

#socket settings, #socket usage, #action/chain, #add actions, #action type, #1:1 Go to Chat Room, #chat function, #create a chat button

2023.08.18 Song

Last updated