Sign in
agent:
Auto Exec

Fix expertprompt task

Add a key-value pair

Add credentials for various integrations

What is an "Expert"? How do we create our own expert?

Process Grafana Alerts

Managing workspaces and access control

DagKnows Architecture Overview

Managing Proxies

Setting up SSO via Azure AD for Dagknows

All the experts

Enable "Auto Exec" and "Send Execution Result to LLM" in "Adjust Settings" if desired

(Optionally) Add ubuntu user to docker group and refresh group membership

Deployment of an EKS Cluster with Worker Nodes in AWS

Adding, Deleting, Listing DagKnows Proxy credentials or key-value pairs

Comprehensive AWS Security and Compliance Evaluation Workflow (SOC2 Super Runbook)

AWS EKS Version Update 1.29 to 1.30 via terraform

Instruction to allow WinRM connection

MSP Usecase: User Onboarding Azure + M365

Post a message to a Slack channel

How to debug a kafka cluster and kafka topics?

Docusign Integration Tasks

Open VPN Troubleshooting (Powershell)

Execute a simple task on the proxy

Assign the proxy role to a user

Create roles to access credentials in proxy

Install OpenVPN client on Windows laptop

Setup Kubernetes kubectl and Minikube on Ubuntu 22.04 LTS

Install Prometheus and Grafana on the minikube cluster on EC2 instance in the monitoring namespace

Sample selenium script

update the EKS versions in different clusters

AI agent session 2024-09-12T09:36:14-07:00 by Sarang Dharmapurikar

Install kubernetes on an ec2 instance ubuntu 20.04 using kubeadm and turn this instance into a master node.

Turn an ec2 instance, ubuntu 20.04 into a kubeadm worker node. Install necessary packages and have it join the cluster.

Install Docker

Parse EDN content and give a JSON out

GitHub related tasks

Check whether a user is there on Azure AD and if the user account status is enabled

Get the input parameters of a Jenkins pipeline

Get the console output of last Jenkins job build

List my Jenkins pipelines

Get last build status for a Jenkins job

Trigger a Jenkins job with param values

Give me steps to do health checks on a Linux Server

Trigger for tickets which have status new/open, group DevOps, assignee None, and public comment includes a keyword

Process Zendesk Ticket for updating comments (auto reply)

Add a public comment to a Zendesk Ticket

Identify list out IAM users list in AWS using dagknows

Restoring an AWS Redshift Cluster from a Snapshot

Notify about disk space before cleaning up

Set an AWS IAM Password Policy

Add a public comment to a Zendesk Ticket

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
import zenpy from zenpy.lib.exception import ZenpyException # Credentials for Zendesk API creds = _get_creds(cred_label)['creds'] # Assuming the function _get_creds retrieves the necessary credentials ZENDESK_EMAIL = creds['username'] ZENDESK_TOKEN = creds['password'] ZENDESK_SUBDOMAIN = subdomain # Replace with your subdomain # Initialize Zenpy client client = zenpy.Zenpy(email=ZENDESK_EMAIL, token=ZENDESK_TOKEN, subdomain=ZENDESK_SUBDOMAIN) def update_ticket_with_public_comment(ticket_id, update_fields): """ Update a Zendesk ticket with a public comment. Parameters: - ticket_id: The ID of the ticket to update. - update_fields: A dictionary containing the fields to update, including the comment. """ try: # Retrieve the ticket by ID ticket = client.tickets(id=ticket_id) # Update fields of the ticket for key, value in update_fields.items(): if key.lower() == 'subject': ticket.subject = value elif key.lower() == 'comment': # Special handling for comments ticket.comment = zenpy.lib.api_objects.Comment(body=value, public=True) # Set comment to public # Add other fields handling as needed # Update the ticket in Zendesk client.tickets.update(ticket) return True except ZenpyException as e: print(f"ZenpyException occurred: {e}") return False except Exception as e: print(f"An error occurred: {e}") return False # Example usage #TICKET_ID_TO_UPDATE = '3' # Replace with your ticket ID UPDATE_FIELDS = { 'comment': comment # Replace with your comment # Add other fields as needed } # Update the ticket with a public comment if update_ticket_with_public_comment(TICKET_ID_TO_UPDATE, UPDATE_FIELDS): print(f"Ticket {TICKET_ID_TO_UPDATE} updated with a public comment successfully.") else: print("Failed to update ticket with a public comment.")
copied