Skip to main content

Scenario

Expanding into new markets requires localized messaging. Perigon’s geographic filtering returns news by country, state, or city. This job pulls news from target markets, creates personas representing local consumer segments, runs a Focus Group to test messaging, then generates localized campaign copy. Flow: Perigon GET /all?country={code} → Mavera POST /personasPOST /focus-groupsPOST /generations → Localized copy

Code

Example Output

Error Handling

Some country codes return few results. Broaden the query or remove sourceGroup filter. For APAC markets, try region instead of country.
Generated copy may default to USD. Explicitly include the target currency in the prompt and add "Do NOT mention USD" if needed.
Focus groups are async. The polling loop waits up to 100 seconds. Increase for complex multi-persona groups.