> For the complete documentation index, see [llms.txt](https://docs.assort.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.assort.app/features/time-tracker/freee.md).

# 「freee人事労務」連携の手順

## 1. freeeアプリを作成する

こちらから、アプリの作成をお願いいたします。

* 「アプリ名」と「概要」は何でも構いません。後から見た場合に分かりやすい名前をおすすめいたします。
* 「アプリタイプ」はプライベートアプリをご選択ください。
* 「利用規約」をご覧いただきチェックをお願いいたします。

<figure><img src="/files/xFevEkiQN9lboULklUjG" alt=""><figcaption></figcaption></figure>

##

## 2. freeeアプリの詳細を設定する

* 基本情報タブの「コールバックURL」を 「<https://www.assort.app/api/auth/freee/callback」に変更してください>

<figure><img src="/files/xaRJzA4uwCw1tJlJ5M6s" alt=""><figcaption></figcaption></figure>

* 権限設定タブを下記画像のようにチェックマークをつけてください。それ以外は空白で構いません。
* その後、「下書き保存」ボタンを押下してください。

<figure><img src="/files/1w9IDKDFDMWvHnWzhNWo" alt=""><figcaption></figcaption></figure>

##

## 3. freeeアプリの情報をAssortに入力する

[Assortの入力ページ](https://www.assort.app/app/timetracker?t=external)で「Client ID」、「Client Secret」、「事業所番号」の3つを入力する必要がございます。「Client ID」、「Client Secret」は下記画像の部分をコピペしてご入力ください。

<figure><img src="/files/wlcmchXt0cfgBrKdvDrV" alt=""><figcaption></figcaption></figure>

「事業所番号」については[freee人事労務のページ](https://p.secure.freee.co.jp/)より、右上の事業所名をホバーするとご確認いただけます（下記参照）。こちらの事業所番号からハイフンを削除し、ご入力ください。

<figure><img src="/files/BPzsltbo8phINx8SrWQ5" alt=""><figcaption></figcaption></figure>

Assortで連携ボタンを押下し、「連携済み」と表示されたらOKです。

<figure><img src="/files/7FdUWsWR6JgenrWCCu2w" alt=""><figcaption></figcaption></figure>

##

## 4. Assortで勤怠管理のボットを設定する

`/timetracker` コマンドで勤怠管理のボットを設定してください。その際に「freee連携」のチェックボックスをオンにしてください。

<figure><img src="/files/DSPNATMVhXGUpAhCxyKP" alt=""><figcaption></figcaption></figure>

##

## 5. 各従業員で「freeeユーザー設定」を行う

勤怠ボットの「freeeユーザー設定」を押下します。

<figure><img src="/files/t4Hpt6aPUM0HXCt5UVCm" alt=""><figcaption></figcaption></figure>

その後、立ち上がるモーダルに「従業員ID」をそれぞれご入力ください。従業員IDは[freee人事労務](https://p.secure.freee.co.jp/)の「従業員ページ」もしくは「従業員情報ページ」のURLより取得いただけます。例えば、`https://p.secure.freee.co.jp/employees#/1234567/profile?...` のようなURLの場合、「1234567」が従業員IDとなります。

また「交通費」の入力は任意です。（リモート以外の）出勤の回数に応じて自動加算されるので、毎月の交通費の算出に便利です。

<figure><img src="/files/0qlzkdJo9gR4M9acwCNV" alt=""><figcaption></figcaption></figure>

以上で完了です。あとは通常通りAssortを使用するだけでfreee人事労務の勤怠の打刻が行えます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.assort.app/features/time-tracker/freee.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
