How to retrieve query_id for linking with callback_answer?

Hi, community!

I’m facing an issue during development: I can’t retrieve the query_id to link it with callback_answer. The entire process currently depends on successfully obtaining this variable, but it’s not being output anywhere, and I can’t figure out how to extract it properly.

Here’s my scenario:

  1. The user interacts with a button (or another interactive element).
  2. I want to use callback_answer for processing and responding, but I can’t link it to query_id because I’m unable to retrieve it.

I’ve already checked the documentation and forums but haven’t found a solution yet. Has anyone faced a similar issue and knows how to correctly get query_id or what workarounds exist?

Thanks in advance for your help!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Adam_Corp

Welcome to the community :raised_hands:

Can you share more information on what / where you are expecting query_id to come from?

Are you using a chat trigger is it another node?