lively-dog-20024
03/30/2026, 2:12 PMloud-crowd-60573
03/30/2026, 2:20 PMloud-crowd-60573
03/30/2026, 2:20 PMwide-umbrella-5226
03/30/2026, 3:02 PMwide-umbrella-5226
03/30/2026, 3:02 PMwide-umbrella-5226
03/30/2026, 3:03 PMwide-umbrella-5226
03/30/2026, 3:03 PMwide-umbrella-5226
03/30/2026, 3:03 PMwide-umbrella-5226
03/30/2026, 3:04 PMwide-umbrella-5226
03/30/2026, 3:04 PMjs
const cleanText = (text: string) =>
text.replace(/\s+\./g, '.').replace(/\s+,/g, ',')
// In your flow node:
const raw = workflow.answer // or wherever your RAG output lands
yield <Message text={cleanText(raw)} />wide-umbrella-5226
03/30/2026, 3:05 PMwide-umbrella-5226
03/30/2026, 3:05 PMwide-umbrella-5226
03/30/2026, 3:05 PM