Whatever message this page gives is out now! Go check it out!

chat

Last update:
May 18, 2026
Sends a message to the RAG service while maintaining conversation memory. Subsequent calls within the same session are aware of previous exchanges. Supports shared or per-user isolated memory.

Syntax

ragService.chat( message )

Parameters

Parameter
Type
Required
Description
message
String
Required
The message or follow-up question from the user.

Returns

Returns a Struct with the following keys: answer (String), sources (Array), durationMs (Numeric).

Example

// Stateful conversation — context preserved across calls
r1 = ragBot.chat("What is cfquery used for?");
writeOutput(r1.answer);

r2 = ragBot.chat("Tell me more about cfqueryparam.");
writeOutput(r2.answer);   // model knows previous context

r3 = ragBot.chat("What are the performance tips?");
writeOutput(r3.answer);

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page