Skip to main content

Search documentation

Search Fiko's documentation

Data Connections

Data Connections let your AI assistant reach into your own systems — an order database, a CRM, an inventory API — to answer questions with real, live data instead of guessing. Connect an endpoint once, and your assistant can look up a customer's order status, check a product's stock level, or (with your approval on every single use) create a support ticket or update a record, all from inside the conversation.

Why Data Connections Matter

  • Answer "where's my order?" with your real order data, not a generic reply
  • No engineering work per integration — one guided setup wizard, no code
  • Test against your real endpoint before anything goes live
  • You control exactly which fields the AI is allowed to see
  • Actions that change data always require a teammate's approval first
  • Limit a connection to the exact customer in the chat with identity verification
  • Built on the same secure request layer for every connection — no per-integration security review needed

Two Building Blocks

Every Data Connection is a link to one of your systems (a base URL plus how to authenticate to it). Underneath a connection, you configure one or more of these:

Data Sources (read-only)

A lookup — "get this customer's profile", "get this order's status". The AI can call these automatically during a conversation, any time it's relevant. Nothing is ever changed in your system by a Data Source. In the dashboard they are listed as lookups, on the Data Lookups tab of a connection.

Write Actions (approval required)

Something that changes data — "create a support ticket", "update a shipping address". The AI can only ever propose one; a teammate has to review and approve it before it actually runs.

Setup Guide

Go to Apps and Integrations → Integrations and click Add connection. A setup window opens with a progress bar and a "Step x / y" label. The number of steps depends on what you choose along the way.

Using Shopify? Pick the Shopify card instead — Fiko sets up the connection and both lookups for you. Connect Shopify

1

Name the connection and choose how to set it up

Enter a connection name — it is shown to agents and in the connection list. Then answer "Do you have the technical details of this system?" (base URL, auth type and API key):

  • Yes, I'll fill it in myself — enter the details by hand, or fill them in quickly from an OpenAPI or Swagger document
  • No, send it to a developer to fill in — Fiko creates the connection right away and emails a one-time link to a developer or IT
2

Import an API document (optional)

If you have an OpenAPI or Swagger document, choose "Yes, import from the document", paste a public link to it (OpenAPI 3 or Swagger 2, in JSON or YAML) and click Read document. Fiko fills in the base URL and the list of operations, and detects the auth type when the document declares a Bearer token, API key or Basic scheme. Otherwise choose "No, I'll enter it myself".

For each operation, Fiko's AI also suggests a plain-language name and a one-sentence description of when to use it, written in the language your dashboard is using. You can change both before saving. If the suggestions can't be generated, setup continues without them.

The link must be publicly reachable. If the document sits behind a VPN or needs a sign-in, enter the details manually instead.

3

Enter the connection details

Enter the base URL of your API (it must start with https://), choose an auth type and enter its credential. See Authentication Types for what each type sends. The connection is saved as soon as you continue, with the status Not tested. If you don't know the base URL or auth type yet, leave them blank and send a link to a developer later from the connection's page.

Your credential (secret key or login password) is stored encrypted and is never shown to agents, admins, or the AI — it's only ever attached to the outgoing request, server-side.

4

Choose who can use the connection

By default every channel can use the connection, including channels you add later. Pick specific channels only if you want to limit it.

5

Choose what the assistant does

Pick Look up customer information (a Data Source), Perform an action for customers (a Write Action), both, or neither. If you pick neither, you finish with just the connection and can add lookups and actions later from the connection's page.

6

Set up the lookup

If you imported a document, first pick the read-only (GET) operation the assistant will call, or start blank. Then fill in:

  • Lookup name, and a description the assistant reads to decide when to use it
  • Path — added after the base URL, with values to replace in curly braces, for example {email}
  • Result shape — Single record or List
  • What identifies the customer? — By email address, By phone number, or Something else, I'll set it up myself

How a customer is matched:

  • By email address or By phone number — automatic. Fiko uses the email or phone number saved on the customer's contact in Fiko, not text from their message.
  • Something else, I'll set it up myself — for example an order code. The AI extracts the value straight from the conversation (see "Extra values" below).

Then use Try with a real example: enter a sample value, click Run test and see what your system sends back. Tick which fields the AI and your agents should be able to see and give each one a label — that becomes your returned data (output mapping). The preview shows only the ticked fields with your labels, never raw JSON.

If the test fails, the result names the problem and shows the status code your system returned, for example "The API rejected the request (401)". The response text itself is shown when you run Test this lookup on the saved lookup's page.

The collapsed For technical users section holds the settings described under Lookup Settings.

7

Set up the action

If you imported a document, pick the operation the assistant may propose — only data-changing operations (POST, PUT, PATCH) are listed — or start blank. Give the action a name and a description for the assistant, choose its type (Create a support ticket, Send email or Update account; refunds are not supported yet), then check the path and the outgoing body. The assistant fills the values in curly braces from the conversation.

A teammate always approves, edits or rejects the proposal before the request is sent. There is no option to run an action automatically.

Testing an action sends a real request and may create real data, for example a new ticket. After a successful test you can pick the response field that identifies the new record, so the agent sees that reference code in the conversation.

8

Finish

Fiko tests the connection to your system and shows a summary of what was saved: the connection, the channels it is available on, the lookups the assistant can use and the actions it can suggest (always needing teammate approval). If your system can't be reached yet, everything is still saved and you can test again from the connection's page. If you close the window part-way, what was already saved is kept, not rolled back.

Managing a Connection

  • The connection list shows each connection's authentication type, its number of lookups and actions, and when it was last checked. Search by name or URL, or open a connection's menu to open it, test it or delete it
  • A connection's page has three tabs: Settings (general information, authentication, identity verification, custom headers), Data Lookups and Actions
  • Test connection sends a request to the base URL. The status becomes Connected when your system responds and does not reject the credentials with a 401 or 403, and Error otherwise. For a username & password login connection the test logs in fresh
  • Deleting a connection also deletes its lookups and actions

Authentication Types

Choose the type that matches how your API expects to be called. Any credential you enter is encrypted when saved and is not shown again. When you edit a connection, leave the credential blank to keep the saved one.

Bearer token

Fiko sends your token in an Authorization: Bearer header.

API key

Fiko sends your key in an X-Api-Key header.

Basic

Enter the username and password as username:password when you create the connection. Fiko sends them in an Authorization: Basic header.

Customer logs in themselves

Each customer signs in to your system in a popup window, and Fiko never sees the password. Your server redirects back to Fiko with the customer's token, and Fiko sends that token in the header you name on every later request. You set a Login URL and a Token header. Because the login belongs to the customer, these lookups cannot be tested from the admin page.

None

Fiko adds no authentication header. Use this when your API only needs custom headers.

Username & password login (token)

Fiko logs in with an account you store and sends the token it gets back. See the section below.

Username & Password Login (Token)

Some back-office systems give out a short-lived token when you log in with an account. With this auth type, Fiko signs in with the username and password you store, keeps the token it receives for a while, and sends it in a header with every request. If your system rejects the token with a 401, Fiko logs in again and retries the request once.

Settings

  • Login URL — The login API address. It must start with https:// and be a public address.
  • Username and Password — The account Fiko signs in with. They are stored encrypted and never shown again. To change the account, enter both.
  • Fixed fields sent with login — Non-secret fields that are always sent with the login, for example orgUnitCode.
  • Token header — The header that carries the token. X-AUTH-TOKEN is prefilled.
  • Reuse token for (seconds) — How long Fiko reuses a token before logging in again. From 1 to 3600 seconds; 900 is prefilled.

Advanced

  • Username field name and Password field name — The names of the form fields that carry the username and password. username and password are prefilled.
  • Token location in response — Where to find the token in the login response, as a JSON path. $.data.token is prefilled.
  • Token prefix (optional) — Text placed before the token in the header, for example Bearer followed by a space.
  • API key location in response (optional) and API key header — For systems whose login also returns an API key. Fiko sends it in a second header, x-api-key by default.
  • Login success check (optional) — Some systems report errors inside a 200 response. Fiko only treats the login as successful when the Field to check equals the Expected value. $.status and 000 are prefilled, and leaving both boxes blank applies the same defaults.

The page you send to a developer (below) does not offer this auth type, so set it up yourself.

Custom Headers

Custom headers are extra headers Fiko sends with every request to this API, on top of whatever the auth type sends — for example a tenant code. Open the connection, go to Settings → Custom headers and click Add header.

  • You can add more than one header. Each needs a name and a value, and header names can't repeat
  • Values are stored as securely as credentials and are not shown again. For an existing header, leave the value blank to keep it, or remove the row to delete the header
  • If a custom header has the same name as the header the auth type sends, the custom header wins
  • With the auth type None, Fiko adds no authentication header, so only your custom headers are added to the request
  • The setup window doesn't ask for custom headers, so add them afterwards, or let a developer add them on their page

Extra Values — Letting the AI Extract Details From the Message

Beyond identifying who the customer is, a lookup often needs a specific detail from what they typed — an order number, a product ID, a ticket reference. Extra values tell the AI what to look for and where to put it.

How to set one up

On the lookup's page, go to Find the customer and add a value under Extra values the assistant must provide. Give it a key (e.g. order_id), a short description of what it means, e.g. "the order number the customer mentioned, e.g. ORD-1234", and say whether it is required. Then use the key in the path in curly braces, for example /orders/{order_id} — a key with no matching spot in the path can't be saved. The description is what the AI reads to know what to pull out of a free-form message, so a clear description directly improves accuracy. In the setup window, extra values appear when you choose "Something else, I'll set it up myself".

When it's required vs. optional

If you chose "Something else" for customer matching, at least one extra value is what makes the lookup vary per customer at all — without one, the same request would run for everyone, and Fiko shows a warning. If you chose email or phone matching, extra values are a genuine add-on (e.g. combining "which customer" with "which order"), added on the lookup's own page. When a required value is missing, the lookup doesn't run and the test shows "Missing information to look up": the assistant needs to ask the customer first.

How Customer Identity Stays Safe

For email and phone matching, Fiko reads the value from the customer's contact record in Fiko, not from the text of their message. Extra values work differently: they are lookup filters taken from the conversation, not proof of who someone is — identity matching and free-text extraction are kept deliberately separate.

When a lookup must only ever return the data of the exact customer in the conversation, turn on identity verification for the connection. The customer logs in once on your own site and Fiko uses their verified user ID. Identity Verification

Returned Data (Output Field Mapping)

You decide exactly which fields from your system's response the AI and your agents can see — everything else your API returns stays server-side and is never shown to anyone. Pick fields straight from a real test response (step 6 above) or add them by hand on the lookup's page under Returned data, with a response field (a JSON path such as $.status) and a display label. It's fine to leave this empty at first and add fields later, but until you do, the assistant sees nothing from the lookup.

Success Check (Optional)

Some systems answer HTTP 200 even when something went wrong, and report the error inside the response. A success check makes Fiko treat such a response as a failure.

How to set it

On a lookup's own page, go to Success check (optional). Enter a Response field — a JSON path such as $.status — and the Expected value, such as 000. Fill in both or leave both blank; blank skips the check. The setup window doesn't include it, so add it after the lookup is created.

What happens

Fiko only uses the result when the field equals the expected value, compared as text. Otherwise the lookup counts as failed: the assistant gets no data from it and the result is not cached. When you test the lookup, a short message names the field and the value found, for example The back-office reported an error ($.status = "500").

Lookup Settings

Sensible defaults are prefilled for every lookup — most admins never need to touch these. In the setup window they sit under "For technical users", so setup stays simple for non-technical users. On a lookup's own page they appear in the sections below.

Let the assistant look this up on its own

On by default for new lookups — the AI can use this Data Source automatically during a conversation. Turn it off for a lookup you only want your team to run by hand; the lookup list then shows "Agent only".

Keep results for (seconds)

How long a successful result is reused before looking it up again (2 minutes by default) — useful for data that doesn't change every second, and reduces load on your system.

When there are several results

For lookups whose result is a list, choose whether to automatically use the first result (the default) or show all rows so the right one can be picked.

Turn this lookup on

Turn a lookup off entirely without deleting its configuration — neither the assistant nor agents can use it while it's off. Useful while an integration is temporarily down on your end.

How the AI Decides What to Use

Your assistant doesn't call every connected system on every message — it reasons about relevance first.

1

Customer sends a message

Fiko checks whether any AI-callable Data Sources or Write Actions are configured for your company at all. If none are, this step is skipped entirely.

2

Relevance check

The AI reads the conversation and each connection's description to decide whether anything is actually relevant — most messages ('thanks!', 'ok') trigger no lookup at all.

3

Extraction

If a lookup is relevant, the AI fills in any required extra values it can confidently find in the conversation, using the descriptions you wrote for each one.

4

Lookup or proposal

Data Sources are called automatically. Write Actions are only ever proposed — sent to a teammate for a look before anything actually runs. If a lookup needs a customer who hasn't verified their identity yet, the AI sends a login link instead of calling your system.

5

Grounded reply

The AI's response is generated using the real data that came back, through your output field mapping — not invented.

Built-In Security

Every request is protected

Every call Fiko makes to your system — during setup testing or live in a conversation — goes through the same hardened request layer: it re-verifies the destination right before connecting, never follows a redirect, and times out quickly. This applies uniformly, so there's no per-connection security setup for you to get right.

Credentials stay yours

Your API secret or login password is encrypted at rest, attached to outgoing requests only, and never rendered in any admin screen, log, or AI prompt after you save it. Custom header values are kept as securely as credentials and are not shown again.

Only what you map, ever leaves

The AI and your agents only ever see the fields you explicitly picked in output field mapping — the rest of your system's response is discarded after the call, on every single lookup.

Changes always need a human

Write Actions can never execute on their own — the AI proposes, a teammate approves or rejects, every time. There is no setting that removes this step.

Best Practices

Do

  • Write a clear description for the connection — it's what the AI uses to decide relevance
  • Write a clear description for every extra value — it directly drives extraction accuracy
  • Test with a real example before finishing setup
  • Map only the fields agents and the AI actually need
  • Start a new lookup with "Let the assistant look this up on its own" on, and turn it off later only if needed

Don't

  • Leave a manual-matching connection with zero extra values — it can't vary per customer
  • Map fields you don't actually want customers' questions answered with
  • Expect a Write Action to run without a teammate approving it — that's by design
  • Expect Write Actions to run on a connection that requires identity verification — they aren't supported there yet
  • Reuse one connection's secret key across unrelated systems
  • Assume every message triggers a lookup — irrelevant messages correctly trigger none

Troubleshooting

A test fails without a clear reason?

  • Check the status code in the result — a 401 means a bad secret key, a 404 means a wrong path, a 400 usually means a missing or malformed value
  • On a saved lookup, the Test this lookup panel also shows the response text your system sent back (shortened if it is long) below the result
  • Confirm the base URL has no typos and doesn't include a path that belongs in the lookup's path
  • Make sure your system is actually publicly reachable from the internet, not just your office network
  • A lookup that gets no answer within 3 seconds is stopped

A username & password login connection fails?

  • When the login is rejected, the success check isn't met, or no token is found at the token location, Fiko reports "Login to the back-office failed. Check the stored username/password and login settings." without repeating your system's own error text
  • Check the Login URL, the username and password field names and any fixed fields your system expects
  • Check the Token location in response and the Login success check in the Advanced section
  • To change the account, enter both the username and the password

A lookup fails even though the API answers with 200?

  • If the lookup has a success check, the Response field must equal the Expected value, compared as text
  • Run Test this lookup — the message under the result names the field and the value found
  • Remove both success check boxes to skip the check

The AI isn't using a connection I set up?

  • Check that "Let the assistant look this up on its own" is turned on for that lookup
  • Make sure the description clearly explains when it's relevant — vague descriptions get skipped
  • If the Data Lookups tab shows a banner that AI lookups are temporarily disabled platform-wide, the assistant won't look things up on its own until the feature is turned back on. Agents can still look things up by hand
  • Remember: most messages correctly trigger no lookup at all — try a message that clearly needs the data

The AI extracted the wrong value from the message?

  • Make the extra value's description more specific, with an example format (e.g. "an order number like ORD-1234")
  • Check that the key name itself is self-explanatory, not something ambiguous like "code" or "ref"
  • Mark the value as required only if a lookup genuinely can't run without it

A Write Action isn't showing up for approval?

  • Confirm all of its required extra values could be confidently filled from the conversation — an incomplete proposal is dropped rather than sent for approval
  • Check that Write Actions are enabled for your company
  • Verify the connection and Write Action are both still marked enabled
  • Write Actions aren't supported on a connection that requires identity verification
Data Connections — Fiko Docs