Free.ai Slack Integration
Add AI tools directly to your Slack workspace.
He pēhea te mahi
Ka hono te Free.ai ki tōna mokowā mahi Slack mā te whakamahi i tētahi tīpae ā-roto. I te wā e hono ana, ka taea e koe te whakaoho i ngā taumahi AI mai i Slack, ā, ka whiwhi hua hāngai ki ōna kanikani.
Ka taea te whakataki i te Free.ai API
- Ka tāurutia te tāurunga ki your Free.ai account (rānei Ka waihanga tētahi wātea).
- Tere ki Ka taea te whakahōu i ngā tautuhinga me te waihanga i tētahi kī API.
- Ko te kī tautuhi - e hiahiatia ana e koe mō te whakaritenga tīpae.
Ka taea te whakatū i tētahi Webhook i roto i te tau
- In Slack, go to Ka taea te whakataki i te taupānga. → search for Webhooks tae mai → E tāpiri ana ki te Slack.
- Ka kōwhiria te kanikani e hiahiatia ana e koe te whakaputanga hua AI.
- Kopa te URL o te tīpae (hei tauira,
https://hooks.slack.com/services/T.../B.../...).
Ka taea te hono i te API
Ka whakamahia he tuhipānui māmā, he Zapier rānei hei whakapiri i te Free.ai me te Slack. He tauira tēnei mā te whakamahi i te 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":"qwen7b","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\"}"
Ka whakamahia ngā take
- E whakarāpopoto ana i ngā aho Slack roa me tētahi whakahau kotahi
- Ka whakamāoritia ngā karere mō ngā rōpū reo maha
- Whakatū i ngā tātai ihirangi me te whiwhi arotakenga i roto i te kanikani
- Ka whakapuakina ā-māori ngā pūrongo AI-i-rohe i ia rā
- Ka whakautua ngā pātai o te rōpū mā te whakamahi i te pūtake mōhiotanga AI