Skip to content

Smart Chat API integration

Smart Chat is a full-screen chat interface inside Obsidian that lets you talk to both:

...without changing tools or breaking your workflow.

The "API models" feature is what makes Smart Chat feel like a power-user cockpit: you configure the providers you care about, then switch models per task while keeping context, history, and control in one place.

Who this helps

You will get immediate value if you are any of these:

Chat settings

This document covers using the Smart Chat API Integration. Looking for more details about specific settings? See the chat settings page.

Open Smart Chat

You can launch Smart Chat from:

Click the Smart Chat icon or open the command palette and run the Open Smart Chat command.

UI tour (what you are looking at)

Key pieces:

Quick start

Goal: ask a question that stays grounded in your vault, while using the best model for the job.

  1. Open Smart Chat.
  2. Add context using one of these:
    • drag notes/files in, or
    • click Lookup context, or
    • click Add context to select manually
  3. Ask a vault-grounded question (examples below).
  4. If the thread drifts, exclude irrelevant message pairs so they do not contaminate the next turn.
  5. Use history search to return to good threads.

Example prompts that work well:

Custom instructions (thread-level system prompt)

Use Edit custom instructions to set the system prompt for the thread.

This is where you put stable rules like:

Treat this as "how this thread should behave", while your message is "what I want right now".

Context is first-class

Smart Chat is designed around a simple truth:
the quality of the answer is mostly about the quality of the context.

You have three fast ways to attach context.

Option 1: Select context manually (high precision)

Use Add context when you already know what matters.

This pairs naturally with the Smart Context Builder:

Related: Smart Context Builder

Option 2: Drag notes/files into the conversation (fastest)

Drag notes or files into the chat to attach them as context.

Use this when you are moving quickly and you already have the right items in view.

Option 3: Lookup context (retrieval / "find the right notes for me")

Use Lookup context when you have a question, but you are not sure which notes contain the answer.

A good mental model:

Tip

Lookup is ideal for "I know I wrote about this" moments.
Manual selection is ideal for "I know exactly what should count as ground truth."

Preventing ungrounded messages (no-context warning)

If you try to send a message without any context attached, Smart Chat can warn you and offer three paths:

This small friction is deliberate: most "AI got it wrong" problems start with "AI did not have the right context".

Thread list and history search

Smart Chat keeps your work in threads so you can return to:

Use history search to find threads by:

Control what gets included next (exclude/include message pairs)

As a thread grows, the fastest way to lose quality is to keep dragging old, irrelevant turns forward.

Smart Chat gives you per-turn control:

Exclude a message pair (user message + assistant response) to keep it from being included as context for future messages.

Use this when:

A simple rule:

Errors and retries (provider reality, surfaced in the UI)

Smart Chat is designed to surface errors inline so you can recover quickly.

Common causes:

When debugging, the fastest sequence is:

  1. confirm the selected model/provider
  2. retry once (transient errors happen)
  3. check provider credentials and availability
  4. switch models if necessary to keep moving

Related pages