Spaces:
Sleeping
Sleeping
declare global { | |
interface Window { | |
difyChatbotConfig: { | |
token: string; | |
inputs: Record<string, string>; | |
systemVariables: Record<string, string>; | |
userVariables: Record<string, string>; | |
}; | |
} | |
} | |
window.difyChatbotConfig = { | |
token: 'U5KHVj67e4Gum8hd', | |
inputs: { | |
// You can define the inputs from the Start node here | |
// key is the variable name | |
// e.g. | |
// name: "NAME" | |
}, | |
systemVariables: { | |
// user_id: 'YOU CAN DEFINE USER ID HERE', | |
// conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID', | |
}, | |
userVariables: { | |
// avatar_url: 'YOU CAN DEFINE USER AVATAR URL HERE', | |
// name: 'YOU CAN DEFINE USER NAME HERE', | |
}, | |
}; |