How can i pass the payload into chatId in conversation node ?
Closed this issue · 1 comments
phuong1605 commented
This is how i did but it did not regconize the chatId. The only way that i can do is that i have to config the ID by hand. But in documentations it said "The parameters chatId and transport can be passed through the payload by the upstream node (if the transport and the bot configuration are already configured)". Thank you.
guidone commented
Hi @phuong1605, these fields are not tokenized yet (the {{..}}
tokens are not expanded).
You can workaround this problem inserting a function node upstream
return {
...msg,
chatId: 'my chat id'
}