Skip to main content
You can now pre-fill chat data on TypingMind using URL parameters. Follow the guide below to configure your chat sessions.

1. Pre-Fill Initial System Message

To set an initial system message for all chats upon opening the app, put the message itself in the initialContextURL query parameter as a text data URL:
For example:
The system will initialize a new chat using that message. Additionally, you can set a custom chat title by appending the chatTitle parameter:
To build the link in code, encode the message, then encode the whole data URL:
Important Notes:
  • initialContextURL only accepts data: URLs with a text media type, such as data:text/plain,... or data:text/markdown;base64,.... Web addresses (http:// or https://) are not loaded, and the app shows an “Unable to Load Context” message instead.
  • The message is read from the link itself. TypingMind doesn’t make any network request for it.
  • Subsequent chats in the same session will retain this context as the system message.
  • The system message can be updated later via the chat model settings.

2. Pre-Fill Initial Agent

You can also set the initial agent for a new chat via the URL. To do so:
  1. Obtain the agent ID. image.png
  2. Open the app with the following URL format:

3. Pre-Fill Initial Message

To set an initial message for a chat, use the message parameter in the URL as shown below:

4. Limitations

Please note that the pre-fill initial message feature currently cannot be used in combination with both the system message and agent settings.