AI Workflows | Free.ai
Chain AI tools together. Automate multi-step processes with AI.
> Chain AI Tools sa Automated Pipelines
> Workflows payagan kang kumonekta ng maraming mga tool AI magkasama. Ang output ng isang hakbang ay nagiging ang input ng susunod. Automate multi-hakbang na proseso na ay tumagal ng oras upang gawin nang manu-mano.
> Halimbawa ng Workflows
Blog Post Pipeline
> Customer Support Automation
Pipeline ng Nilalaman ng Video
Research Assistant
> Paano bumuo ng isang Workflow
- > Magsimula sa isang tool — > Pumili ng anumang AI tool bilang iyong punto ng simula (Chat, Larawan, Mga TNT(Ito ay, halimbawa,...
- > I-copy ang output — > Gamitin ang resulta bilang input para sa susunod na tool. Halimbawa, kumuha AI-nabubuo ng teksto at feed ito sa text-to-speech.
- > Awtomatikong may API — > Chain API tawag magkasama sa isang script para sa ganap na automated pipelines. Tingnan ang aming Mga dokumento ng API.
- Gumamit ng Zapier — Connect Free.ai to 5,000+ apps for no-code automation. See our Zapier integration.
API Workflow Halimbawa
> Chain dalawang API tawag & mdash; bumuo ng teksto pagkatapos ay i-convert sa pagsasalita:
import requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
# Step 1: Generate text
resp = requests.post("https://api.free.ai/v1/chat/completions", headers=HEADERS,
json={"model": "qwen2.5-72b", "messages": [{"role": "user", "content": "Write a 2-sentence product description for wireless earbuds"}]})
text = resp.json()["choices"][0]["message"]["content"]
# Step 2: Convert to speech
resp = requests.post("https://api.free.ai/v1/tts", headers=HEADERS,
json={"text": text, "voice": "af_heart"})
with open("output.mp3", "wb") as f:
f.write(resp.content)