microscopic-stone-6467
07/25/2025, 4:57 PMConversation (Advanced) trigger node and connected to the same Standard node the Execute code for fetching context from api.
3. Issue1: When page event is sent to bot (using sendEvent()), this trigger node should kickstart the connected node. But it doesn't and conversation variables also not upgraded.
4. Issue2: After few chats, user might move to next page. During this time, the conversation is handled by Autonomous node. This node receives the event and sends message to webchat saying
It looks like the page or video has changed. If you'd like a summary, explanation, or have questions about the new content, just let me know!
this response is cool, but I want that Standard node to be triggered to fetch the recent data based on payload sent in sendEvent(payload).microscopic-stone-6467
07/25/2025, 4:57 PMts
const sendContextUpdateMessage = (articleId: number) => {
if (client && conversationId) {
const articleType = pathname.includes('/v/') ? 'video' : 'article';
const contextUpdatePayload = {
type: 'text',
text: '', // Empty text as this is a system message
conversationId,
customData: {
articleId,
articleType,
isContextUpdate: true, // Flag to identify this as a context update
timestamp: Date.now(),
},
} as const;
client.sendEvent(contextUpdatePayload);
}
};