System prompts
A system prompt shapes how Finn responds — its tone, format, and persona. The SDK lets you set one at two levels, both optional. If you set neither, Finn uses the backend’s default.
Client-level default
Section titled “Client-level default”Set systemPrompt / system_prompt on the client to apply it to every new
conversation that client starts:
const finn = new FinnClient({ url, apiKey, systemPrompt: 'Answer concisely. Prefer numbers and short bullet points.',});finn = FinnClient( url=url, api_key=api_key, system_prompt="Answer concisely. Prefer numbers and short bullet points.",)Per-conversation override
Section titled “Per-conversation override”Pass systemPrompt / system_prompt when you send a message to override the
default for one conversation:
const turn = finn.sendMessage('Summarize member growth this quarter.', { systemPrompt: 'You are a credit union analyst. Be formal and cite figures.',});turn = await finn.send_message( "Summarize member growth this quarter.", system_prompt="You are a credit union analyst. Be formal and cite figures.",)The one rule: new conversations only
Section titled “The one rule: new conversations only”So the precedence for a brand-new conversation is:
- the per-call override, if given;
- otherwise the client’s default, if set;
- otherwise the backend’s built-in default.
To apply a different system prompt, start a new conversation (omit the conversation id).