AI-assisted integration (Beta)

Use AI assistance to speed up the integration process.

Requirements:

  1. Project built with Unity.

  2. The project does not have devtodev integration yet. Projects with poorily integrated events can also participate.

  3. AI coding agent that have access to the complete application code.

If you have any questions regarding the integration, let us know by using the Contact Us form. We will also greatly appreciate your feedback. Please add AI INTEGRATION when submitting your request.

This example is for game application made with Unity, however, the process is similar for other applications types

Preparation and prompt

Get Unity Integration Guide File

Download the Unity Integration Guide File and add it to your Unity project folder. We recommend creating a folder called docs and placing the guide inside it. This ensures the AI coding agent can easily access and use it during analysis.

Open your AI-agent, and select your Unity project folder. The agent will begin indexing all project files, including the markdown guide. Wait a few moments until indexing is complete.

Create prompt

Create a clear and effective prompt for the AI-agent. The prompt should:

  • Assign the AI a role (like "You are a product engineer").

  • Specify your goal: integrate DevToDev events properly.

  • Reference the guide using @devtodev_unity_integration_guide.md.

Copy and paste the promt text into the AI-agent chat window.

You can use our prompt as an example.

The prompt accuracy is estimated at around 90%, which means that some devtodev method calls may contain errors. Therefore, it’s recommended that developers review the integration code.

Add references to integration guide

Attach the guide file inside the prompt. You can do this in two ways:

  1. Find all the guide mentions in the prompt and delete that placeholder text. Then, drag the file from the docs folder into the chat window. The AI-agent will automatically recognize and link the file.

  2. Alternatively, type @ and start typing "devtodev" — the agent will suggest the guide file. Usually it is at the top of the list.

Now click Send and let the AI coding agent generate the integration.

It will:

  • Analyze your codebase

  • Understand game logic

  • Suggest where and how to insert DevToDev analytics events.

Events generation

Check and review the list of events generated by the AI-agent. You can edit the list by removing the unnecessary or duplicate events. You can also ask the AI to revise its suggestions.

After you have finished reviewing and modifying the suggested events file, you can proceed to the next step of integration. The AI-agent may then generate a new class — usually something like AnalyticsManager — to send events to Devtodev.

Further integration

The coding agent might show some errors if Unity has not recompiled yet. Switch to the Unity Editor and wait for it to finish compiling. Once done, the errors in AI-agent will disappear.

After generating the integration, the AI-agent will also produce a documentation file (like ANALYTICS_SETUP.md).

It describes:

  • Where events were added

  • How to use the generated AnalyticsManager class

  • What next steps are required to finish setup.

Follow that instruction carefully to complete your devtodev analytics integration properly.

Last updated

Was this helpful?

OSZAR »