YouTube on Wednesday announced a new tool that will allow advertisers to use Google’s Gemini AI model to target ads to viewers when they are most engaged with a video.

The artificial intelligence feature, called “Peak Points,” identifies times when videos receive elevated levels of viewer attention and packages ads to be placed after those moments.