Personal AI for Developers

August 23, 2024

Welcome to our Personal AI Newsletter! Get ready to explore the future of personalized technology. We’re thrilled to introduce you to AI that adapts to you, enhancing your digital life in ways you never imagined. Join us as we showcase how Personal AI can make your daily interactions smarter, more efficient, and tailored just for you.

This week, we will cover essential topics for developers looking to harness the power of AI in their projects. We’ll explore how developers can leverage Personal AI, delve into the flexible APIs that enable custom implementations, and showcase AI tools like instruction and messaging that can enhance your applications. Additionally, we’ll address frequently asked questions to ensure you comprehensively understand Personal AI’s capabilities. Whether you’re a seasoned developer or just starting your AI journey, this newsletter will provide valuable insights to help you create user-centric AI experiences.

A diagram showing a central icon with two people and a thought bubble, connected to various categories such as Docs & Spreadsheets, URLs, My Memories, Articles, Notes & Ideas, and Quotes & Passages.

Personal AI For Developers

Developers can tap into Personal AI’s power through its API, opening up a world of possibilities. Every Personal AI comes with its own model and server with a custom domain, which means you can integrate it into various applications and services. With our publicly available API, developers can leverage our proprietary PLM to integrate Personal AI into a variety of environments.

Here are some cool ways developers can use Personal AI:

  • Custom Integrations: Use Zapier to connect Personal AI with thousands of other apps and services. This allows for almost limitless integration possibilities.
  • Content Generation: Utilize the API to generate content in the user’s unique voice for blogs, social media, or email campaigns.
  • Automated Responses: Integrate Personal AI into email or messaging systems to draft replies automatically.
  • Research Assistant: Create applications that use Personal AI as a second brain for research, helping users quickly access and connect ideas from their stored knowledge.

Personal AI APIs

Personal AI revolutionizes development with its cutting-edge, model-specific APIs. These powerful interfaces enable direct interaction with AI models, unlocking customization and advanced implementations. Here are some more examples of how to leverage our APIs:

A chat conversation between “Developers of Personal AI” and “PAI Developers” discussing using Python for web development. The conversation highlights Python’s suitability for building web applications, mentions popular frameworks like Flask and Django, and emphasizes Python’s readability and maintainability.
  • AI Message: Engage with Personal AI through versatile messaging options. Share text, images, links, videos, or files privately with your AI or with others in DMs or Channels. Enhance your AI’s learning by saving important interactions to its memory — simply tap the + button to store your message. This feature allows you to continuously refine your AI’s understanding and personalization.
A screenshot of a text editor interface with a document titled “Python Reflection.” The document contains a draft about reflecting on Python, starting with the initial encounter. There are options to upload files, links, and URLs.
  • Upload URL: Paste in any publicly viewable URL with readable text through an API call. Choose which AI persona you want to train (DomainName), add a descriptive title (Title) and some hashtags for context (Tags). Always save the uploaded link as a draft first and review it in the documents section before stacking (“is_stack: false”. Why? Sometimes the upload process might bring in extra stuff you don’t need, so it’s good to give it a once-over before adding it to your memory stack. You can upload all sorts of content — blogs, newsletters, articles, transcripts, you name it. And guess what? Personal AI even supports YouTube URLs, automatically processing video transcriptions into your memory stack.
A screenshot of a digital workspace with a section titled “My Memory & Resources.” The main content is a memory titled “Reflecting on Python: My Journey Through a Language Revolution,” which includes thoughts on Python’s simplicity, community, and impact on the user’s coding journey. There are also sections for documents, favorites, integrations, and training resources.
  • AI Memory: Anytime you have information you want your AI to learn and use later. This could be daily thoughts, important notes, or any text you think might be valuable for future reference. You can add files directly, complete questionnaires, or enter text into notes by writing or pasting. The available upload methods may vary based on the memory type you select. This versatility ensures you can easily input and organize your information in the way that works best for you.
A screenshot of a digital workspace with a document titled “Python Reflection.” The document contains a draft about reflecting on Python, starting with the initial encounter. There are options to edit, format, and upload the document. Additionally, there are sections for My Memories, Documents, Favorites, Integrations, and Training Resources.
  • Upload Document: When to upload documents to your Personal AI, it’s best to do it as a draft first. This way, you can check for any mistakes before stacking it. It’s all about keeping your data accurate and clean. If you’re dealing with Google Docs or OneDrive, you can upload entire folders. For Gmail or Outlook users, you can sync starred or flagged emails daily. One thing to keep in mind — there’s a 50,000-word limit for file uploads in Personal AI Premium. If your document’s longer, just break it into parts and stack them separately.

Stacking Memories to an AI Persona

API Endpoint: https://api-enterprise.personal.ai/v1/memory https://api.personal.ai/v1/memory

Parameters include:

  • “Text”
  • “RawFeedText”
  • “DomainName”
  • “CreatedTime”
  • “SourceName”
  • “Tags”
  • Tips:

To route the API call to a single persona for memory stacking, use the domain name in the curl

The DomainName is the portion of your AI domain that proceeds the “.personal.ai”. For example, “developer” would be the DomainName derived from “developer.personal.ai”

Tags can be added to the request as a way to categorize memory within a memory block. When a keyword in a prompt matches a tag, the AI focuses on the related documents, improving accuracy.

A code snippet demonstrating how to use the Personal AI API to create a new memory. The code includes the URL, headers, and JSON data with fields like “Text,” “RawFeedText,” “DomainName,” “CreatedTime,” “SourceName,” and “Tags.”

Memory Output

This is an example of what the memory output would look like in Postman and on Personal AI. When this API call is made, the memory block is automatically stacked to the designated AI persona. This is how it would look on the Personal AI side of the process.

A code snippet showing a JSON response with a “type” of “memory” and a “payload” array containing a single memory object. The memory object has fields like “type,” “memlevel,” “memlabel,” and “name,” with values indicating that it’s a memory block labeled “I have a BS in Computer Science.” and associated with the name “Developer AI.”
A chat message from “PAI Developers” stating “I have a BS in Computer Science.” It’s part of a conversation labeled “Memory Stack 5 Memory Blocks.”

Messaging a Specific Persona or Channel

API Endpoint: https://api-enterprise.personal.ai/v1/message

https://api.personal.ai/v1/message

Parameters include:

  • “Text” — message to send your AI
  • “Context” — Message to add additional context to the AI for a response. [Similar to Reply function].
  • “UserName” — Name of the user sending the request. For example, a name can be inputted so that the AI knows who to address in its response.
  • “DomainName” — the domain part of the AI profile or channel URL.
  • “SessionId” — using the same SessionId will keep the same conversation going. This can be used when the requester wants the conversation to be one continuous chain.

Tips:

  • To route the API call to a single persona or channel, you will include the domain name in the curl
A code snippet demonstrating how to use the Personal AI API to send a message. The code includes the URL, headers, and JSON data with fields like “Text,” “DomainName,” “Context,” “UserName,” and “SessionId.” The message asks “What’s your favorite dev tool?”

Message Output

This is an example of what the memory output would look like. When this API call is made, the prompt is sent to the AI persona and a response is returned to the user. This is how it would look on the Personal AI side of the process.

A code snippet showing a JSON response with fields like “ai message,” “ai score,” “ai name,” and “SessionId.” The “ai message” contains a text response from an AI named “Developer,” expressing their preference for Visual Studio Code as a development tool and asking the user about their favorite dev tool.
A screenshot of a chat conversation between “Developers of Personal AI” and “PAI Developers.” The conversation highlights the use of Visual Studio Code as a favorite development tool. The image includes explanations of the “UserName” output, “SessionId,” and “Domain Name” in the context of the API request.

Frequently Asked Questions For Developers

How do I get my SessionId?

  • If no SessionId is passed on the first request, one will be generated for all subsequent requests.

Where do I find my domain name?

  • Your domain name is the text displayed before the “.personal.ai” in your AI domain. For example, the domain name in “python.personal.ai” would be “python”.

How do I continue the same conversation?

  • When formatting your curl, use the same SessionId parameter to continue the conversation on that session.

Where do I locate my AI’s API key?

  • Your API key can be found on Personal AI’s settings page.

How do I message a specific persona?

  • DomainName

Is there any way I can call the Personal.ai API myself without using Zapier if I am on a Personal plan?

  • Yes, you can access the Personal AI API directly without using Zapier. You can find more information about the API and its documentation here: https://postman.personal.ai/

How do I connect to Notion?

  • Zapier can do it for new items or updated items. Use “New Database Item in Notion” as the trigger and “Sync Memory to Personal AI” as the event.

How do I create memories of longer texts?

  • We added a new API endpoint that allows the stacking of long text into Documents. This will allow you to create memories out of longer text — great for those meeting transcripts and notes! See more here: https://postman.personal.ai/#424657e8-dd67-4c0c-986e-b7b0d102d021
  • The corresponding Action on Zapier (3.4.0) is “Upload Document”.

Personal AI Developers Channel

If you have any further questions about how to use Personal AI for Developers — please join our Developer Support Channel here: https://telaholcomb-pai-Personal-AI-Developer-Lounge.personal.ai

Stay Connected
More Posts

You Might Also Like