Hi all,
I thought I’d play around with the openAI GPTs platform. I created an automation in home assistant with a webhook trigger that sends a notification to my phone:
alias: GPT Test
description: ""
trigger:
- platform: webhook
allowed_methods:
- POST
- PUT
local_only: false
webhook_id: ***REMOVED***
condition: []
action:
- service: notify.mobile_app_iphone
data:
message: message:{{trigger.json.message}}
mode: single
and exposed this in a custom GPT with the following action schema in its config (essentially giving it the ability to call an api, inferring what it does from the description):
{
"openapi": "3.1.0",
"info": {
"title": "home assistant hooks",
"description": "gives the ability to send things to homeassistant",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://hooks.nabu.casa/***REMOVED***"
}
],
"paths": {
"/": {
"post": {
"description": "Sends a notification to home assistant",
"operationId": "SendNotificaiton",
"parameters": [
{
"name": "message",
"in": "body",
"description": "the message to be sent in the notification",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
}
},
"components": {
"schemas": {}
}
}
and gave it some basic instructions:
then tested it out…
…
… simple, yes. but WOW