Библиотека / Строительные блоки и утилиты
Строительные блоки и утилиты
Получение отрывков Библии по ссылкам для других workflow
Подворкфлоу, который принимает JSON-объект со ссылками на места Писания и возвращает соответствующие стихи в том же формате, что и Bible API. Запускается только при вызове из другого workflow.
Что делает
# GetBible Query Workflow Documentation ## Overview The GetBibleQuery workflow is a modular and self-standing workflow designed to retrieve scriptures based on provided references. It serves as an intermediary layer that takes in a structured JSON object, extracts the references, and returns the corresponding scriptures in the same format as if they were retrieved directly from the API. This workflow is highly adaptable and can be integrated into various projects where scriptural references need to be dynamically fetched. ## JSON Input Structure The workflow expects a JSON object with the following parameters: - References should include the book name, chapter, and verse(s). - Multiple verses can be separated by commas (e.g., John 3:16,18). - Ranges can be specified using a dash (e.g., John 3:16-18). - The Bible translation ### Example JSON Input: json { "references": [ "1 John 3:16", "Jn 3:16", "James 3:16", "Rom 3:16" ], "translation": "kjv", "version": "v2" } ### API Response Format The response returned by this workflow follows the same API format as if the request were made directly to the source API. This ensures compatibility with projects that rely on standard API responses. Example JSON Response (in this workflow): json { "result": { "kjv_62_3": { "translation": "King James Version", "abbreviation": "kjv", "lang": "en", "language": "English", "direction": "LTR", "encoding": "UTF-8", "book_nr": 62, "book_name": "1 John", "chapter": 3, "name": "1 John 3", "ref": [ "1 John 3:16" ], "verses": [ { "chapter": 3, "verse": 16, "name": "1 John 3:16", "text": "Hereby perceive we the love of God, because he laid down his life for us: and we ought to lay down our lives for the brethren." } ] } } } ## Integration and Usage The GetBible Query workflow is designed for easy integration into any project that requires scripture retrieval. Simply pass the appropriate JSON object as input, and it will return the requested scripture passages. ## Support For any questions or additional assistance, please visit our [Support desk]({{ $env.WEBHOOK_URL }} or [API documentation]({{ $env.WEBHOOK_URL }}
Шаги
- Entry
- ModelJson
- API Query to GetBible
- Map API Respons to Result
Похожие автоматизации
Поддержка клиентов и служба помощиОтветы на вопросы поддержки в Telegram с Gemini и SupabaseШагов: 13Чат-боты и боты для мессенджеровИИ-агент по продажам для Bitrix24 с Gemini и SupabaseШагов: 54Строительные блоки и утилитыЗапуск другого рабочего процесса из ручного триггераШагов: 2Строительные блоки и утилитыПредотвращение параллельных запусков воркфлоу с помощью RedisШагов: 32