Ejento AI
HomeQuickstartGuidesRecipesREST APIsChangelogsFAQs
HomeQuickstartGuidesRecipesREST APIsChangelogsFAQs
Ejento AI
  1. Features
  • Basic Operations
    • Features
      • Teams-->Projects-->Assistants Hierarchy
    • Guides
      • Login/Signup
  • Assistants
    • Features
      • Introduction to Assistants
      • Assistant Access Control
      • Caching Responses for Assistants
      • Assistant Evaluation
      • URL-based Chat Thread Creation and Prepopulation
      • Evaluation Metrics
    • Guides
      • Add an Assistant
      • Add assistant Instructions
      • Evaluate Assistant
      • Edit Assistant
      • Delete Assistant
      • Add Favourite Assistants
      • View Assistant Id
      • View Dataset Id
  • Workflows
    • Features
      • Introduction
    • Guides
      • Add Workflow
      • Workflow Chat
  • Corpus
    • Features
      • Introduction
      • Corpus Permissions
      • PII Redaction
    • Guides
      • Assistant Corpus Setup
      • Assistant Corpus Settings
      • Corpus Access Control
      • Corpus Connections
      • View Corpus Id
      • View Document Id
      • Tagging
        • Corpus tagging
        • Document tagging
  • Tools
    • Features
      • Introduction
    • Guides
      • Configure RAG Tool
      • Configure Attachment Tool
      • Configure Web Search Tool
      • Configure API Tool
      • View Tool Id
  • Analytics
    • Guides
      • Analytics
  • User Settings
    • Features
      • Ejento AI User Access Levels
    • Guides
      • Assistant Edit Access
      • Add User in a Team
      • Remove User from a Team
      • View my Access level in a Team
      • View my User Id
  • Chatlogs
    • Guides
      • Chatlogs
      • View Chatlog & Chat thread Id
  • API Keys
    • Guides
      • API Keys
  • Integrations
    • Email Indexing
    • Microsoft Teams
    • Sharepoint Indexing
  • Authentication & API Access
    • Guides
      • Authentication & API Access
  • Teams
    • Features
      • Introduction
    • Guides
      • Add a Team
      • Edit a Team
      • Delete a Team
      • View Team Id
  • Projects
    • Features
      • Introduction
    • Guides
      • Add a Project
      • Edit a Project
      • Delete a Project
      • View Project Id
  1. Features

URL-based Chat Thread Creation and Prepopulation

How to Open New Threads and Prepopulate the Chat Input Using URL Parameters#

Introduction#

Navigating chat interfaces should be seamless, whether you're starting a fresh conversation or continuing where you left off. To enhance user experience, our platform allows you to control the chat window using URL parameters. These parameters enable automatic thread creation, query prepopulation, and even automatic message submission. Below, we break down how these features work and how you can use them effectively.

1. Opening a New Chat Thread#

If you want to start a brand-new conversation without any prior context, use the thread=new parameter.
Example URL:
app.ejento.ai?thread=new
Behavior:
A completely new chat thread is created, allowing you to begin a fresh discussion.
assistant-url-param-1.jpg

2. Prepopulating the Last Thread with a Query Parameter#

Sometimes, you may want to continue your last conversation and prefill the chat input box with a query. You can achieve this using the query parameter.
Example URL:
app.ejento.ai?query=How%20can%20I%20reset%20my%20password
Behavior:
The last created thread is opened, and the chat input box is prefilled with the provided query.
assistant-url-param-2.png

3. Prepopulating and Automatically Submitting a Query#

To further streamline interactions, you can prepopulate the chat input and submit it automatically by adding the submit=true parameter.
Example URL:
app.ejento.ai?query=How%20can%20I%20reset%20my%20password&submit=true
Behavior:
1.
The last thread is opened.
2.
The query is automatically inserted into the chat input box.
3.
After a short delay (1000ms), the query is submitted.
4.
The query and submit parameters are removed from the URL after submission.
assistant-url-param-3.png

4. Creating a New Thread with a Prepopulated Query#

If you want to start a fresh conversation while prepopulating the input field with a specific query, use both thread=new and query parameters.
Example URL:
app.ejento.ai?thread=new&query=How%20can%20I%20track%20my%20order
Behavior:
A new thread is created, and the chat input box is prefilled with the query.
assistant-url-param-4.jpg

5. Creating a New Thread and Submitting the Query Automatically#

To combine the benefits of starting a new conversation and submitting a query instantly, use thread=new, query, and submit=true parameters.
Example URL:
app.ejento.ai?thread=new&query=How%20can%20I%20track%20my%20order&submit=true
Behavior:
1.
A new chat thread is created.
2.
The input box is prefilled with the query.
3.
After 1000ms, the query is automatically submitted.
4.
The thread=new, query, and submit=true parameters are removed from the URL after submission to maintain a clean state.
assistant-url-param-5.png

Conclusion#

Using these URL parameters, you can significantly enhance your chat experience, making interactions more efficient and intuitive. Whether you're starting a new conversation or resuming an existing one, these features ensure a smoother, faster workflow.
Try these options out and enjoy a more seamless chat experience!
Previous
Assistant Evaluation
Next
Evaluation Metrics