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.
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