File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -150,12 +150,13 @@ <h3 class="text-lg font-medium leading-6 text-gray-900">Conversation List Displa
150
150
await messenger.initialize({
151
151
appId: 'APP_ID',
152
152
aiAgentId: 'AI_AGENT_ID',
153
- // Use Conversation component to display only the messenger without the launcher
154
- customMainComponent: ({ messenger }) => (props) => (
155
- < messenger .AgentProviderContainer {...props} >
156
- < messenger .Conversation />
157
- </ messenger .AgentProviderContainer>
158
- ),
153
+ // Use ConversationList component to display only the conversation list UI without the messenger
154
+ // And you can access to the AI Agent Messenger and React instance via first argument
155
+ customMainComponent: ({ messenger, react }) => (props) => {
156
+ return react.createElement(messenger.AgentProviderContainer, props, [
157
+ react.createElement(messenger.ConversationList),
158
+ ]);
159
+ }
159
160
});
160
161
</ textarea >
161
162
</ div >
You can’t perform that action at this time.
0 commit comments