Notes in Genbots act as modular building blocks for workflows. They encapsulate tasks such as querying databases, performing data transformations, or running advanced analytics, making processes reusable, maintainable, and scalable.
_manage_notebook
: Create, list, update, or delete notes or process configurations
create_note
: Creates a new note with detailed content and parameters.
update_note
: Modifies the content, configuration, or metadata of an existing note.
delete_note
: Permanently deletes a note from the system.
list_notes
: Lists all available notes, including details like type and identifiers.
get_note_details
: Retrieves the full content and metadata of a specific note by its ID.
execute_note
: Runs the embedded SQL, Python logic, or processes stored in a specified note.
Note Creation
Note Configuration
List All Notes For Genbot Workflows
_manage_notebook | Manage Notebook | |
---|---|---|
Input Parameters | Definition | Format |
Action | Defines the operation to be performed. | String ("CREATE" , "UPDATE" , "DELETE" , "LIST" ) |
"CREATE" | Creates a new note. | - |
"UPDATE" | Updates an existing note with revised content. | - |
"DELETE" | Deletes an existing note from the notebook. | - |
"LIST" | Lists all currently available notes and configurations. | - |
note_id | (Required for updates and deletions) A unique identifier for the note. | String |
note_name | A meaningful name for the note (e.g., “Monthly Report Process”). | String |
note_type | Defines the note’s type. | String ("process" , "sql" , "snowpark_python" ) |
note_content | The actual content of the note, including instructions or configurations. | String |
note_params (Optional) | Parameters associated with the note for custom execution. | String |
create_note | Create a Note For Genbot Use |
---|---|
Input Parameters | Definition |
note_id | Unique ID for the note (e.g., note-abcdef123 ). |
note_name | Human-readable name for the note (e.g., Database Query Guide ). |
note_type | The type of note, such as process , snowpark_python , or sql . |
note_content | The text content of the note (e.g., SQL query or process description). |
note_params | (Optional): Parameters required by the note, provided as key-value pairs. |
update_note | Update Note Instructions |
---|---|
Input Parameters | Definition |
note_id | Unique ID of the note to update. |
update_details | Fields to modify, such as content, name, or parameters. |
delete_note | Note Deletion |
---|---|
Input Parameters | Definition |
note_id | Unique string identifier for the note being deleted. |
list_notes | List All Available Notes |
---|---|
Input Parameters | Definition |
N/A | No parameters required; retrieves all types of notes stored in the system. |
get_note_details | Update Note Instructions |
---|---|
Input Parameters | Definition |
note_id | Specifies the note to retrieve in full. |
execute_note | Genbot Note Use |
---|---|
Input Parameters | Definition |
note_id | Specifies the unique identifier of the note to execute. |
sql
, snowpark_python
<bot_id>_<task_name>_<random_id>
2. we selected SQL as the note type for querying databases.
3. we ensured the query fetches all necessary fields, applies appropriate conditions and filters, and uses proper joins (if needed).
4. If variability is needed, create placeholders for values such as QUARTER
or CAMPAIGN_ID
using Genbots parameter variables.
Example:
WHERE QUARTER = ${quarter}
quarter = 2024Q2