Results 1 to 2 of 2

Thread: ai4vb - Ai integration

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,294

    ai4vb - Ai integration

    This is a small project that shows how you can integrate the Claude or ChatGPT api into your programs.

    The main classes can be use in many ways. This example shows how to give the AI access to your programs data / API so it can automate your app and generate reports or do searches.

    We do this by adding our programs classes to the msscript control, and then giving the AI access to probe and query it. We have designed a way that the AI can automatically discover our API surface then access it dynamically with javascript.

    We use an auto generated dump of our class public prototypes to show whats available. There is a source code parser included to create these dumps by pointing it at the project file. If you wanted to keep some api private from the AI you could modify the parser to add function decorators as comments to omit them.

    There is a readme.md included and more discussion here: https://sandsprite.com/papers/Agenti...ect_Models.pdf

    You will need to generate your own API key for Claude and or Chatgpt to use this. Kinda fun.

    repo: https://github.com/dzzie/ai4vb

    edit:
    added optional async=false
    added image analysis example
    added database analysis example
    Attached Files Attached Files
    Last edited by dz32; May 17th, 2026 at 06:58 PM.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,294

    Re: ai4vb - Ai integration

    So, one way to add AI to your app is to build it right in like the above example.

    Another way to do it is to make your app externally scriptable so AI can access it.

    For this mechanism to work users would have to be running a local AI agent such as claude code, and have the scripting interface of what methods they could call published for the AI to study. The scripting part can be pulled off using the Running Object Table (ROT) and leveraging vb6's native design where almost everything is a COM object by default. The AI then just executes a series of vbs script using GetObject() and figures out on its own how to answer the users question.

    If you search the forums you will find ROT examples: https://www.vbforums.com/showthread.php?879529
    Last edited by dz32; May 22nd, 2026 at 09:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width