# Logfire AI agent for Slack & Microsoft Teams

Viktor is an AI employee that connects to Logfire with a scoped API key and helps you run and evaluate LLM and AI infrastructure workloads, running 2 Logfire actions for you like Run SQL Query, and Record Log Entry. Ask in plain English in Slack or Microsoft Teams; Viktor does the work in Logfire and reports back. Setup takes about two minutes.

- Tool: Logfire
- Category: AI & Machine Learning
- Connection: API key
- Actions available: 2
- Works from: Slack and Microsoft Teams
- Page: https://viktor.com/integrations/logfire

## What can you ask Viktor to do in Logfire?

- "Run this batch of documents through Logfire and summarize the results."
- "Compare Logfire's output on this prompt with what we use today."
- "Set up a daily job that queries Logfire on new entries and reports back."
- "Watch Logfire for a cost or latency spike and alert me with the likely cause."

## What can Viktor do in Logfire? (2 actions)

- **Run SQL Query** - Executes an arbitrary SQL query against Logfire's records (unified logs + traces, one row per span) or metrics tables and returns the results. Use this for any analysis, search, or aggregation over your telemetry — recent activity, error hunting, latency analysis, counts, etc. To discover what columns are available before writing a query, run SELECT columnname, datatype FROM informationschema.columns WHERE tablename = 'records' (or 'metrics') with this same tool — there is no separate schema-discovery tool. Useful columns on records include starttimestamp, spanname, message, level, servicename, duration, isexception, exceptiontype, and exceptionmessage. Example — find exceptions: SELECT spanname, exceptiontype, exceptionmessage FROM records WHERE isexception = true ORDER BY starttimestamp DESC. Example — count by level: SELECT level, count() AS n FROM records GROUP BY level ORDER BY n DESC. After using Record Log Entry to write data, use this tool to confirm what was recorded. See the SQL reference and query API docs.
- **Record Log Entry** - Records a single log entry or event in Logfire as a zero-duration span, via OTLP ingestion. Use this whenever the user wants to log, record, or note an event, deployment, incident, or error — this is Logfire's equivalent of calling logfire.info()/logfire.error() from the SDK. This creates a single point-in-time entry, not a full distributed trace with parent/child spans. Setting exceptionType/exceptionMessage marks the entry as an exception (isexception = true when later queried). After recording, use Run SQL Query to confirm what was written (e.g. SELECT FROM records WHERE message LIKE '%...%' ORDER BY starttimestamp DESC LIMIT 1).

## How does Viktor work with Logfire?

1. Add Viktor to Slack or Microsoft Teams.
2. Connect Logfire with an API key - Viktor handles authentication.
3. Ask in plain English. Viktor runs the Logfire actions, chains them with your other tools when needed, and reports back. Sensitive actions wait for your approval.

## What is a Logfire AI agent?

A Logfire AI agent is an AI that connects to your Logfire account and completes work in it - it doesn't just answer questions about Logfire, it takes the actions. Viktor is that agent: an AI employee that works in Logfire on your behalf and delivers the finished result in Slack or Microsoft Teams.

Unlike workflow builders such as Zapier or Make, there is nothing to configure - no triggers to map, no workflows to maintain. You describe the outcome in plain English, and Viktor picks the right Logfire actions, chains them with the other 3,200+ tools it connects to, and asks for approval before anything sensitive runs.

### About Logfire

AI Observability Platform for LLMs, Apps & RAG

## Security and permissions

- Scoped API keys - Viktor stores your key securely, uses only the scopes you grant, and you can revoke it at any time.
- Review-first approvals: sensitive Logfire actions wait for your sign-off before they run.
- Isolated compute per team, encrypted in transit and at rest - and your data is never used to train models.
- SOC 2 Type 1 compliant, with Type 2 and ISO 27001 in progress.

## FAQ

### Does Viktor integrate with Logfire?

Yes. Logfire is one of the 3,200+ tools Viktor connects to, via a managed connector. Once connected, anyone on your team can put Viktor to work in Logfire from Slack or Microsoft Teams - no workflow builder, no code.

### How do I connect Logfire to Viktor?

Ask Viktor in Slack or Microsoft Teams to connect Logfire, then paste an API key from your Logfire account when prompted. Viktor stores the key securely, uses only the scopes you grant, and you can revoke it at any time. Setup takes about two minutes.

### What can Viktor do in Logfire?

Viktor can run 2 Logfire actions, including Run SQL Query, and Record Log Entry - and chain them with other tools in a single request. In practice that means Viktor helps you run and evaluate LLM and AI infrastructure workloads. If a task spans several actions, Viktor plans the sequence itself and reports back when the work is done.

### Do I need to build workflows to automate Logfire?

No. Viktor isn't a workflow builder - there are no triggers to map and no workflows to maintain. You ask for the outcome in plain English in Slack or Microsoft Teams, and Viktor decides which Logfire actions to take, runs them, and reports back.

### Is my Logfire data secure with Viktor?

Yes. Viktor connects to Logfire with a scoped API key, runs in an isolated environment per team, and never trains models on your data. Sensitive actions wait for your approval, and you can revoke access at any time. Viktor is SOC 2 Type 1 compliant, with Type 2 and ISO 27001 in progress.

### How much does the Logfire integration cost?

Nothing extra - every integration, including Logfire, is available on every plan. You can start free with up to $100 in credits, no credit card required; paid plans start at $50/month.

### Can Viktor use Logfire together with my other tools?

Yes - that's the point. Viktor connects to 3,200+ tools and works across them in a single run: it can pull data from Logfire, cross-reference it with another tool - for example Slack or Gmail, and deliver the finished result in Slack or Microsoft Teams.

## Viktor uses Logfire together with

- [Slack](https://viktor.com/integrations/slack)
- [Gmail](https://viktor.com/integrations/gmail)
- [Google Sheets](https://viktor.com/integrations/google-sheets)
- [HubSpot](https://viktor.com/integrations/hubspot)
- [Notion](https://viktor.com/integrations/notion)
- [Salesforce](https://viktor.com/integrations/salesforce)

## More AI & Machine Learning integrations

- [Browser Use](https://viktor.com/integrations/browser-use)
- [Symbl.ai](https://viktor.com/integrations/symbl-ai)
- [Airtable](https://viktor.com/integrations/airtable-2)
- [Daytona](https://viktor.com/integrations/daytona)
- [GitLab](https://viktor.com/integrations/gitlab)
- [Devin](https://viktor.com/integrations/devin)
- [Ollama](https://viktor.com/integrations/ollama)
- [302.AI](https://viktor.com/integrations/302-ai)

## Get started

Viktor is free to start - up to $100 in credits, no credit card required. All 3,200+ integrations are included on every plan. Sign up at https://viktor.com or browse all integrations at https://viktor.com/integrations.
