Hi there,
I’ve got a scenario that receives a new lead from Chatbase through a Webhook, then finds the conversation that the lead came from, and combines the lead details and the conversation log into a single email that gets sent to a sales rep via email. Looks a little like this (webhook replaced with scenario input and email replaced with a variable output to make testing easier):
I’m using a Text Aggregator to create the conversation log that goes into the email. Here’s what the data looks like that it’s aggregating from:
And here’s the aggregation formula:
It works in the sense that I get all the combined ‘content’, but it’s one long string.
Ideally I’d present it like this:
Role: assistant
Content: default initial messageRole: user
Content: The first user questionRole: assistant
Content: The first generated answer
etc.
So 1) Mapping both the role and the content of the message one after the other and 2) with an empty line between individual items.
I’ve tried using the Row Separator option in the Text Aggregator settings, but it does nothing. I can imagine I’d have to alter the modules before, but not sure how I’d approach this. Any idea?