Dify
AI वाले ज्योतिष ऐप के लिए Occult API को Dify वर्कफ़्लो में जोड़ें।
HTTP टूल
Dify में एक HTTP टूल नोड जोड़ें। मेथड POST रखें और URL https://api.occultapi.com/api/astro/chart/।
हेडर
अपनी Occult API कुंजी के साथ X-API-Key जोड़ें, और Content-Type: application/json।
{
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}बॉडी
जन्म का ब्योरा पिछले नोड से JSON बॉडी के वेरिएबल के रूप में भेजें।
{
"chart_name": "RashiChart",
"datetime": "1990-05-15T14:30:00+05:30",
"latitude": 28.6139,
"longitude": 77.209,
"ayanamsa": "lahiri",
"ascendant_pos": "cusp",
"notation": "degree"
}वर्कफ़्लो का उदाहरण
ऐसा chatflow बनाएँ जिसमें उपयोगकर्ता जन्म का ब्योरा दे, HTTP नोड Occult API को कॉल करे, और एक response नोड नतीजे को सजाकर दिखाए।
{
"nodes": [
{
"type": "start",
"data": { "variables": ["datetime", "latitude", "longitude"] }
},
{
"type": "http-request",
"data": {
"method": "POST",
"url": "https://api.occultapi.com/api/astro/chart/",
"headers": {
"X-API-Key": "={{$env.OCCULT_API_KEY}}",
"Content-Type": "application/json"
},
"body": {
"chart_name": "RashiChart",
"datetime": "={{start.datetime}}",
"latitude": "={{start.latitude}}",
"longitude": "={{start.longitude}}",
"ayanamsa": "lahiri",
"ascendant_pos": "cusp",
"notation": "degree"
}
}
},
{
"type": "llm",
"data": {
"prompt": "Format this natal chart data into a readable summary: {{http.body}}"
}
}
]
}