Skip to content

Instantly share code, notes, and snippets.

@anthonycoffey
anthonycoffey / SIMPLETALK_JOBS_WEBHOOK.md
Created November 15, 2025 08:00
This webhook accepts a customer's phone number and returns active jobs in a JSON response

Simpletalk Webhook API

This document provides instructions for using the Simpletalk webhook to retrieve active job information for a customer.

Endpoint

POST /webhooks/simpletalk/jobs

Authentication

/voice-quote Endpoint Flow

This document outlines the end-to-end process that occurs when a request is sent to the POST /voice-quote endpoint. The system is designed to be robust, handling both exact data matches and ambiguous inputs through a combination of a rules-based engine and a fallback to a Generative AI model (LLM).

graph TD
    A[Start: POST /voice-quote] --> B{1. Validate `service_type`};
    B -- Missing --> C[Send 400 Error];
    B -- Present --> D[2. Find Best Service Match];
    D -- Not Found --> E[Send 500 Error: Service Not Found];
@anthonycoffey
anthonycoffey / POST-voice-quote.md
Created November 4, 2025 14:52
`POST /voice-quote` API documentation

Voice Quote API Endpoint

This document provides instructions for using the /voice-quote API endpoint. This endpoint is designed to provide a price quote for vehicle services based on a spoken service_type, making it ideal for voice bot and IVR integrations.

Endpoint

POST /voice-quote

Request Body

Privacy Policy for 24HR CAR UNLOCK

Last Updated: October 14, 2025

This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the 24HR CAR UNLOCK mobile application (the "Service") and tells You about Your privacy rights and how the law protects You.

We use Your Personal data to provide and improve the Service. By using the Service, You agree to the collection and use of information in accordance with this Privacy Policy.

Interpretation and Definitions

Twilio SMS Notification Report

This document provides a comprehensive list of all automated SMS notifications sent through Twilio within the application.


1. Mass Texting to New Customers

  • File: src/services/notificationService.js
  • Function: sendText
@anthonycoffey
anthonycoffey / quote-documentation.md
Last active October 8, 2025 19:54
Explanation of How the Quote is Calculated

Pricing Logic Documentation

The pricing system uses a hybrid approach that combines a fast, rules-based engine for standard requests with a powerful Generative AI (LLM) fallback to handle ambiguity, misspellings, or vehicles not in our standard database.

This ensures both accuracy for known vehicles and flexibility for unpredictable user input.


Pricing Calculation Flow

POST /quote

This endpoint calculates a price quote for a vehicle service based on vehicle details and the time of service. It uses a rules-based engine for exact matches and falls back to a Generative AI model (LLM) to handle ambiguous or incomplete data.

  • prod: https://phoenix-crm-api.herokuapp.com

  • staging: https://phoenix-staging-data-3d6054f8c3ef.herokuapp.com

  • URL: /quote

  • Method: POST

@anthonycoffey
anthonycoffey / wordpress.sh
Last active September 13, 2025 09:33 — forked from durvalrafael/wordpress.sh
fix wordpress permissions from root dir
#!/bin/bash
# Set the WordPress root to the current working directory.
WORDPRESS_ROOT="$PWD"
# Check if the current directory looks like a WordPress installation by checking for wp-config.php
if [ ! -f "$WORDPRESS_ROOT/wp-config.php" ]; then
echo "Error: wp-config.php not found in the current directory."
echo "Please 'cd' into your WordPress root directory before running this script."
exit 1
name: Deploy to Firebase Hosting on PR
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
<div style="page-break-inside:avoid;page-break-after:always"></div>