How to send URL parameters to an AI Agent?

  • Profile Image
    Gallant_Emil
    Asked on July 29, 2025 at 3:28 PM


    I am trying to find a way to pass the invocation URL to an AI Agent. Is this possible?


    I see there's a property of a Form to achieve this but I couldn't find any related to AI Agents.


    Is it possible to pass JS params into the widget as it's loaded? I've created an API endpoint to test the referrer value of the calls, but it's set to the www.jotforum.com domain so that didn't pan out.


    Any help would be appreciated.

  • Profile Image
    Leona JotForm Support
    Replied on July 29, 2025 at 4:24 PM

    Hello Emil,

    Thanks for reaching out to Jotform Support. Yes, Jotform AI Agents can be taught using URLs. You can train your AI agent by providing it with links to online websites or specific pages. The AI agent will then crawl the provided URLs, analyze the content, and use that information to improve its responses and knowledge base. It's really easy. Let me show you how:

    1. In AI Agent Builder, in the blue navigation bar at the top of the page, click Train, then go to the Knowledge Base section.
    2. Select Link, and under Enter a URL, paste the link you want your AI to be trained with.
    3. Choose to enable or disable the frequency for Enable Periodic Recrawling for Daily, Weekly, or Monthly, then click Crawl to save and begin training.

    How to send URL parameters to an AI Agent? Image 1 Screenshot 20

    To keep the conversation organized, I moved your other question to its own thread, and someone from our Support Team will help you with it here.

    Let us know if you have any other questions.

  • Profile Image
    Gallant_Emil
    Replied on July 30, 2025 at 10:28 AM


    That's not what I asked for. I asked if the invocation URL could be passed to the AI Agent.


    The non-answer actually answered it perfectly; nope.


    And why was my post broken into 2 questions? It's not related to Forms, it's about AI Agents. Now the new post you created has no context and now is useless.

  • Profile Image
    Leona JotForm Support
    Replied on July 30, 2025 at 10:58 AM

    Hi Emil,

    I misunderstood what you were looking to do. Currently, the AI Agent widget does not allow passing invocation URLs or JavaScript parameters directly during loading due to its sandboxed environment, which ensures privacy and stability. It does not support dynamic input or capturing referrer values. Could you clarify what data you want to pass via the invocation URL and the desired behavior or response from the AI Agent? Are you embedding it in a custom site or using it in another context?