Simple-Notes icon indicating copy to clipboard operation
Simple-Notes copied to clipboard

Implement ACTION_CREATE_NOTE for AI integration

Open hobbycommandline opened this issue 3 years ago • 1 comments

AI Assistants can send the intents listed here. With extras providing a suggested note name, and the note contents

It would be cool if this app supported ACTION_CREATE_NOTE and ACTION_APPEND_NOTE. ACTION_DELETE_NOTE is a bit controversial as it could cause note content deletion without recourse, and would probably require custom UI to prevent unhappy users so I wouldn't recommend implementing it if you're pressed for time.

I just implemented the notes action myself here https://github.com/hobbycommandline/Hobby-Scheme-Command-Line/releases/tag/0.0.2 and tried it with your app, but it didn't respond

I checked your App Manifest and confirmed it did not include com.google.android.gms.actions.CREATE_NOTE

Do remember to set resultCode = Activity.RESULT_OK if you take action based on the intent so the assistant knows you created the note successfully.

hobbycommandline avatar Jan 05 '22 00:01 hobbycommandline

I have discovered your app supports receiving plain text files, so i will just send notes to your app that way instead, but technically ACTION_CREATE_NOTE is still the right way to do things

hobbycommandline avatar Jan 05 '22 03:01 hobbycommandline