PRODUCTION SCENARIO
A Generative AI Engineer builds a finance assistant that calls a Genie Agent through its API. A user asks "Total revenue by region for Q2" and then "Now just the Northeast," and the second call fails because the agent has no record of what "now" refers to.
How should the assistant send the follow-up request?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Reuse the conversation ID that the first response returned
Each Genie Agents API response carries a conversation ID, and passing it continues that conversation so follow-up turns build on the earlier one, while omitting it starts a new one. Re-sending tables or creating new agents wastes tokens and discards the conversation Genie already tracks.
Official Source: https://docs.databricks.com/aws/en/genie-agents/api ↗