# Exposing Confetti sessions and bookmarks to AI agents using Android AppFunctions

DevFeed: [Exposing Confetti sessions and bookmarks to AI agents using Android AppFunctions](<https://devfeed.tech/articles/exposing-confetti-sessions-and-bookmarks-to-ai-agents-using-android-appfunctions-111021.md>)

Original publisher: [Read original article](<https://johnoreilly.dev/posts/confetti-appfunctions/>)

Published: 2026-11-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [John O'Reilly](<https://devfeed.tech/sources/john-o-reilly.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [AI Bots](<https://devfeed.tech/topics/ai-bots.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>)

Tags: [a2ui](<https://devfeed.tech/tags/a2ui.md>), [actions](<https://devfeed.tech/tags/actions.md>), [adb](<https://devfeed.tech/tags/adb.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [android](<https://devfeed.tech/tags/android.md>), [appfunctions](<https://devfeed.tech/tags/appfunctions.md>), [bookmark](<https://devfeed.tech/tags/bookmark.md>), [debug](<https://devfeed.tech/tags/debug.md>), [demo](<https://devfeed.tech/tags/demo.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [droidcon](<https://devfeed.tech/tags/droidcon.md>), [function](<https://devfeed.tech/tags/function.md>), [functions](<https://devfeed.tech/tags/functions.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [sessions](<https://devfeed.tech/tags/sessions.md>)

## AI overview

Confetti exposes four Android AppFunctions--`getConference`, `listSessions`, `addBookmark` and `removeBookmark`--so on-device agents can answer questions about the selected conference and manage session bookmarks. The implementation uses AppFunctions `1.0.0-beta01`, KSP-generated service code and schema, and existing repositories; it requires `compileSdk` 37 and `targetSdk` 36 or later. Function and serialized-property KDoc descriptions are passed to the LLM, and the generated service and app metadata must be registered. In the described Gemini Agent Demo test, Gemini found sessions about agents using the conference and session functions, then bookmarked a session that appeared in Confetti. The author had not yet tested with Android MCP.

## Source excerpt

AppFunctions allow an Android app to expose functionality that can then be used by AI agents and assistants running on the device. With the recent announcement of Android MCP (which is powered by the AppFunctions API and allows Gemini to make use of functionality in your app) I thought it was a good time to look at adding AppFunctions support to the Confetti conference app. This article will outline the changes made to do that (included in this PR).