Free.ai Slack Integration
Add AI tools directly to your Slack workspace.
Cara Kerjanya
Connect Free.ai to your Slack workspace using an incoming webhook. Once connected, you can trigger AI tasks from Slack and receive results directly in your channels.
Step 1: Get Your Free.ai API Key
- Masuk ke your Free.ai account (atau buat satu bebas).
- Ke Pengaturan Pengembang dan hasilkan kunci API.
- Salin kunci — Anda akan membutuhkannya untuk konfigurasi webhook.
Langkah 2: Buat Slack Coming Webhook
- In Slack, go to Apps → search for Webhook masuk → Tambahkan ke Slack.
- Pilih kanal di mana Anda ingin hasil AI diposting.
- Salin URL webhook (misalnya,
https://hooks.slack.com/services/T.../B.../...).
Langkah 3: Sambung melalui API
Use a simple script or Zapier to bridge Free.ai and Slack. Here is an example using curl:
# 1. Call Free.ai API
RESPONSE=$(curl -s -X POST https://api.free.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_FREEAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen2.5-72b","messages":[{"role":"user","content":"Summarize the latest AI news"}]}')
# 2. Extract the reply
TEXT=$(echo $RESPONSE | python3 -c "import sys,json; print(json.load(sys.stdin)['choices'][0]['message']['content'])")
# 3. Post to Slack
curl -X POST YOUR_SLACK_WEBHOOK_URL \
-H "Content-Type: application/json" \
-d "{\"text\": \"$TEXT\"}"
Gunakan Kasus
- Ringkas thread panjang Slack dengan satu perintah
- Terjemahkan pesan untuk tim multibahasa
- Hasilkan draf isi dan dapatkan umpan balik in-channel
- Auto-post harian laporan AI-generated
- Jawab pertanyaan tim menggunakan dasar pengetahuan AI