Skip to main content

Overview

Our customers entrust us with their content, and in order to then gain a real business benefit from their content, they want to provide selective, context-aware access to it to their customers, depending on their needs. Search is how we help customers present their data, based on the context their customers provide, in the form of a query. That’s the beauty of AI-based, near-text, semantic search, and that’s why we use it at Gloo. For example, if one of our customers adds articles and podcasts about keeping a marriage strong, and during one of the podcast episodes, the discussion focuses on the guest’s top five rules for keeping a marriage healthy, we will likely want search queries that ask for “secrets to a happy marriage” to include in that particular podcast in the results. The word “secret” doesn’t necessarily have to be included in the content, and the word “rule” doesn’t have to be in the search query, but nevertheless, the results should include this podcast episode. Specifically, search allows you to query your ingested content, to see what you’re presenting to the world, through Gloo AI. Our API returns your content, broken up into snippets, showing what we provide to our internal chat-based tools, and what you can use in your own applications. Snippets are sections of a content item, e.g. podcast episode, article, book, that represent a large enough piece of meaningful information to be searchable, and understandable by our AI tools. These snippets also represent a recorded unit of searchable content within our backend systems.

RAG - Retrieval Augmented Generation

When constructing an AI application, it is sometimes useful to provide additional context to the AI model. Retrieval Augmented Generation allows you to insert these search results in the message to the model, and this can provide a more successful, context-aware interaction with your customers.

Making Requests

Prerequisites

Before making a request, you must know which publisher’s content you would like to query.
  1. Find Your Tenant (Publisher Name): First, navigate to the Organizations page in Studio and click “View Publishers”. Your Tenant is the name of the publisher you’re querying.
  2. Identify the Collection: A collection is where we keep the content for our customers. The only collection you’ll need to specify in requests is GlooProd. You must specify this in the collection field.
NOTE: You will only have access to your own publisher’s tenant through this endpoint, and a tenant must be specified. Other requests will result in a 403 “Forbidden” response.

How many records can I retrieve?

We recommend anywhere from 10 to 100 results, though request time will rise non-linearly with larger result sets. The limit field is how you specify how many records to return.

How do I make a request?

Once you have your tenant name, you’re ready to query the search endpoint. You can acquire an API key by visiting the API Credentials page and following those instructions to generate a token using the OAuth2 Client Credentials flow. Endpoint: POST /ai/data/v1/search

Example cURL Request

cURL
curl 'https://platform.ai.gloo.com/ai/data/v1/search' -v \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer ${ACCESS_TOKEN}" \
  -d '{"query":"How can I find true happiness?","collection":"GlooProd","tenant": "TestOrg","certainty":0.5,"limit":1}'
Example Response The result should look something like this:
JSON
{
    "data": [
        {
            "uuid": "12345678-abcd-1234-abcd-1234567890ab",
            "metadata": {
                "creation_time": "2025-09-02T23:49:49.338000Z",
                "last_update_time": "2025-09-02T23:50:36.348000Z",
                "distance": 0.39595216512680054,
                "certainty": 0.8020238876342773,
                "score": 0.0,
                "explain_score": "",
                "is_consistent": false,
                "rerank_score": null
            },
            "properties": {
                "pub_type": "technical",
                "item_file": "",
                "h3_subtitle": "",
                "item_tags": [
                    "automated",
                    "ingestion"
                ],
                "screen_cap": "",
                "h2_subtitle": "",
                "publisher_bw": null,
                "item_title": "Finding True Happiness",
                "publisher_hierarchy_fav": null,
                "publisher_hierarchy": null,
                "evergreen": true,
                "h2_id": "",
                "organization": null,
                "h3_image": "",
                "denomination": "",
                "producer_id": "",
                "time_start": "",
                "publisher": "Test Org",
                "publisher_logo": null,
                "h2_title": "",
                "h2_number": "",
                "publisher_hierarchy_bw": null,
                "duration": "",
                "h3_id": "",
                "pages": "",
                "publisher_hierarchy_logo": null,
                "filename": "Finding_True_Happiness_realtime",
                "h2_url": "",
                "time_end": "",
                "drm": null,
                "h3_title": "",
                "h3_url": "",
                "item_extra": "",
                "item_image": "",
                "item_id": "",
                "isbn": "",
                "h3_file": "",
                "hosted_url": "",
                "organization_id": "",
                "h3_number": "",
                "publisher_fav": null,
                "publication_date": "2025-09-02",
                "publisher_url": "",
                "h2_image": "",
                "publisher_id": "",
                "item_number": "",
                "h2_file": "",
                "item_subtitle": "",
                "h2_extra": "",
                "h3_summary": "",
                "h2_summary": "",
                "snippet": "# Finding True Happiness: A Christian Perspective  In a world obsessed with pursuing happiness through material success, relationships, and experiences, Christianity offers a radically different path to lasting joy. True happiness, from a biblical worldview, isn't found in circumstances but in our relationship with God and alignment with His purposes.  ## Joy Rooted in Identity  The foundation of Christian happiness begins with understanding our identity as beloved children of God. Romans 8:16 reminds us that \"The Spirit himself testifies with our spirit that we are God's children.\" This secure identity provides unshakeable joy that doesn't depend on external validation, achievements, or circumstances. When we truly grasp that we are unconditionally loved by the Creator of the universe, a deep contentment settles in our hearts.  ## The Beatitudes: God's Blueprint for Blessedness",
                "part": 0,
                "h3_extra": "",
                "item_url": "",
                "type": "Article",
                "start_index": 0,
                "publisher_hierarchy_url": null,
                "item_summary": "",
                "author": [
                    "Automated Ingestion"
                ],
                "summaries": {
                    "ai_phd_student": "This discourse analyzes the theological framework of eudaimonia within Christian doctrine, particularly examining the correlation between divine filial relationship and authentic happiness.",
                    "ai_loving": "Beloved, discover the beautiful truth that your happiness is secured in being God's precious child, far beyond what this world can offer.",
                    "ai_news_anchor": "In today's discussion, we explore the Christian perspective on happiness, highlighting how spiritual identity trumps material success in achieving lasting joy.",
                    "ai_elegant": "An exploration of authentic happiness through the Christian paradigm, emphasizing the profound connection between divine identity and genuine joy.",
                    "ai_simple": "True happiness comes from knowing we are God's children, not from things or success in the world.",
                    "ai_casual": "Hey, this piece talks about how real happiness isn't about stuff or success, but about knowing you're God's child and finding joy in that relationship.",
                    "ai_first_grader": "God loves us very much and that makes us happy. Being God's children is better than having toys or things to make us happy.",
                    "ai_creative": "Journey into the heart of happiness through heaven's lens, where joy blooms not in earthly gardens but in the fertile soil of divine identity.",
                    "ai_formal": "This text examines the theological perspective on authentic happiness, emphasizing its foundation in divine sonship rather than material or circumstantial factors.",
                    "ai_biblical": "The text explores the Christian understanding of true happiness as rooted in our identity as God's children, contrasting worldly pursuits with spiritual joy found in relationship with God."
                },
                "biblical_analysis": {
                    "ai_biblical_concepts": [
                        "Divine adoption",
                        "Spiritual identity",
                        "Beatitudes",
                        "Kingdom happiness"
                    ],
                    "ai_bible_characters": [
                        "Jesus"
                    ],
                    "ai_bible_references": [
                        "Romans 8:16"
                    ],
                    "ai_book_of_the_bible": "Romans",
                    "ai_bible_phrases": [
                        "we are God's children"
                    ],
                    "ai_bible_concepts": [
                        "Identity in Christ",
                        "Divine Sonship",
                        "Joy",
                        "Contentment"
                    ],
                    "ai_biblical_lesson": "True happiness is found in understanding and embracing our identity as children of God rather than pursuing worldly sources of satisfaction.",
                    "ai_bible_verses": [
                        "The Spirit himself testifies with our spirit that we are God's children"
                    ]
                },
                "general_analysis": {
                    "ai_profile_gender": "Not targeted to a specific gender",
                    "ai_personas": [
                        "Spiritual seekers",
                        "Christians seeking growth",
                        "People questioning happiness"
                    ],
                    "ai_keywords": [
                        "happiness",
                        "joy",
                        "identity",
                        "contentment",
                        "Christianity"
                    ],
                    "ai_topic_classification": "Christian Spiritual Formation",
                    "ai_reading_duration": 3.0,
                    "ai_read_more_suggestion": [
                        "Understanding the Beatitudes",
                        "Identity in Christ",
                        "Biblical Joy"
                    ],
                    "ai_famous_quotes": [],
                    "ai_meta_description": "Explore the Christian perspective on finding true happiness through understanding your identity as God's child rather than worldly success.",
                    "ai_scripture_parallels": [
                        "Psalm 16:11 - Joy in God's presence",
                        "Philippians 4:4 - Rejoicing in the Lord"
                    ],
                    "ai_user_activity": "Reading time: 3 minutes, Ideal for morning devotional",
                    "ai_hashtags": [
                        "ChristianJoy",
                        "TrueHappiness",
                        "IdentityInChrist",
                        "BiblicalTruth"
                    ],
                    "ai_user_interests": [
                        "Christianity",
                        "Spiritual growth",
                        "Personal development",
                        "Biblical teaching"
                    ],
                    "ai_profile_alignment": [
                        "Christian believers",
                        "Spiritual seekers",
                        "Personal development enthusiasts"
                    ],
                    "ai_why_bullets": [
                        "Provides an alternative to materialistic views of happiness",
                        "Offers lasting joy independent of circumstances",
                        "Establishes secure identity foundation"
                    ],
                    "ai_interactive_callout": "Take a moment to reflect on what truly brings you lasting joy",
                    "ai_user_retention_tip": "Subscribe to receive weekly devotionals on finding joy in Christ",
                    "ai_complexity": 7.0,
                    "ai_life_issues": [
                        "identity",
                        "happiness",
                        "contentment",
                        "purpose"
                    ],
                    "ai_mood_board": "Soft, warm colors, peaceful natural settings, uplifting imagery of light and hope",
                    "ai_important_phrase": "True happiness isn't found in circumstances but in our relationship with God",
                    "ai_search_snippet": "Discover how Christianity offers a unique perspective on finding lasting happiness through spiritual identity rather than material success.",
                    "ai_subtitle": "Discovering Lasting Joy in Divine Identity",
                    "ai_thriving": [
                        "spiritual fulfillment",
                        "emotional stability",
                        "identity security"
                    ],
                    "ai_intent": "educational",
                    "ai_sentiment": "positive",
                    "ai_audio_snippet": "Gentle, contemplative background music with soft piano",
                    "ai_title_variations": [
                        "The Christian Path to Lasting Joy",
                        "God's Blueprint for True Happiness",
                        "Finding Joy in Divine Identity"
                    ],
                    "ai_poll_question": "What do you believe is the primary source of lasting happiness?",
                    "ai_emotional_resonance": [
                        "hope",
                        "peace",
                        "contentment",
                        "security"
                    ],
                    "ai_next_steps": [
                        "Reflect on your identity as God's child",
                        "Study the Beatitudes",
                        "Evaluate your sources of happiness"
                    ],
                    "ai_reader_impact": "Transformed perspective on happiness and personal identity",
                    "ai_books_mentioned": [],
                    "ai_music_recommendation": "Contemporary Christian worship music focusing on joy and identity",
                    "ai_reader_motivation": "Seeking authentic, lasting joy beyond material success",
                    "ai_readability": 8.0,
                    "ai_sharing_probability": 0.7,
                    "ai_engagement_score": 8.0,
                    "ai_terminology_definitions": [
                        "Beatitudes: Jesus teachings on true happiness and blessedness"
                    ],
                    "ai_google_search": [
                        "Christian perspective on happiness",
                        "finding true joy in God",
                        "identity in Christ"
                    ],
                    "ai_conversion_potential": "High potential for newsletter signups and devotional subscriptions",
                    "ai_sharing_message": "Find out why true happiness goes deeper than circumstances and success",
                    "ai_tweet": "True happiness isn't found in what we have or do, but in who we are - beloved children of God.",
                    "ai_song_lyric": "In Your presence there is fullness of joy",
                    "ai_famous_people": [],
                    "ai_search_engine_tags": [
                        "Christian happiness",
                        "biblical joy",
                        "spiritual identity",
                        "finding true contentment"
                    ],
                    "ai_ad_placement_opportunity": "Christian counseling services, spiritual growth resources",
                    "ai_describing_words": [
                        "radically",
                        "different",
                        "lasting",
                        "unshakeable",
                        "deep"
                    ],
                    "ai_reader_takeaway": "True happiness comes from understanding and embracing our identity as God's children",
                    "ai_content_clusters": [
                        "Christian Living",
                        "Spiritual Growth",
                        "Biblical Teaching",
                        "Personal Development"
                    ],
                    "ai_title": "Finding True Happiness: A Christian Perspective",
                    "ai_questions_answered": [
                        "Where can true happiness be found?",
                        "What is the Christian perspective on happiness?"
                    ],
                    "ai_comment_prompt": "How has your understanding of happiness changed through your spiritual journey?",
                    "ai_standalone": "high",
                    "ai_social_media_caption": "Discover the secret to lasting happiness through understanding your identity as God's beloved child.",
                    "ai_key_statistics": [],
                    "ai_quiz_question": "According to the text, what is the foundation of Christian happiness?",
                    "ai_meta_keywords": [
                        "Christian happiness",
                        "spiritual joy",
                        "identity in Christ",
                        "biblical contentment"
                    ],
                    "ai_christian_topics": [
                        "Identity in Christ",
                        "Biblical Joy",
                        "Divine Sonship",
                        "Beatitudes"
                    ],
                    "ai_image_prompt": "A serene landscape with rays of sunlight breaking through clouds, symbolizing divine love and joy",
                    "ai_feedback_request": "Has this article helped you understand the Christian perspective on happiness?",
                    "ai_why_matter": "Understanding true happiness from a Christian perspective can transform how we approach life satisfaction and personal fulfillment.",
                    "ai_flourishing": [
                        "spiritual growth",
                        "emotional wellbeing",
                        "identity security"
                    ],
                    "ai_traffic_prediction": 0.8
                }
            },
            "references": null,
            "vector": {},
            "collection": "GlooProd"
        }
    ],
    "intent": 1
}