AI for Nonprofits: Advocate Assistant

AI for Nonprofits: Advocate Assistant · GPT Actions

Advocate Assistant API

API to support policy and advocacy efforts for nonprofits with strategic suggestions and messaging guidance.

  • POST /generateInfluencePlanCreates plans for influencing policymakers, incorporating grassroots activation and media engagement.
  • POST /createMessagingGuidanceGenerates messaging guidance and discussion tools for policy reform.
  • POST /forecastImpactAnalyzes and predicts the community impact of legislative actions.
原始 API 定义
{
  "openapi": "3.0.0",
  "info": {
    "title": "Advocate Assistant API",
    "description": "API to support policy and advocacy efforts for nonprofits with strategic suggestions and messaging guidance.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.advocate-assistant.com/v1",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/generateInfluencePlan": {
      "post": {
        "operationId": "generateInfluencePlan",
        "summary": "Creates plans for influencing policymakers, incorporating grassroots activation and media engagement.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfluencePlanRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tailored policymaker influence plan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InfluencePlanResponse"
                }
              }
            }
          }
        }
      }
    },
    "/createMessagingGuidance": {
      "post": {
        "operationId": "createMessagingGuidance",
        "summary": "Generates messaging guidance and discussion tools for policy reform.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessagingGuidanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Customized messaging and discussion guides.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessagingGuidanceResponse"
                }
              }
            }
          }
        }
      }
    },
    "/forecastImpact": {
      "post": {
        "operationId": "forecastImpact",
        "summary": "Analyzes and predicts the community impact of legislative actions.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImpactForecastRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Legislative impact forecast.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImpactForecastResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "InfluencePlanRequest": {
        "type": "object",
        "properties": {
          "campaignDetails": {
            "type": "object",
            "properties": {
              "objectives": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "targetAudience": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "InfluencePlanResponse": {
        "type": "object",
        "properties": {
          "strategy": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tactic": {
                  "type": "string"
                },
                "approach": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "MessagingGuidanceRequest": {
        "type": "object",
        "properties": {
          "audienceData": {
            "type": "object",
            "properties": {
              "demographics": {
                "type": "object"
              },
              "psychographics": {
                "type": "object"
              }
            }
          }
        }
      },
      "MessagingGuidanceResponse": {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "recommendations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ImpactForecastRequest": {
        "type": "object",
        "properties": {
          "legislativeDetails": {
            "type": "object",
            "properties": {
              "billNumber": {
                "type": "string"
              },
              "proposedChanges": {
                "type": "string"
              }
            }
          }
        }
      },
      "ImpactForecastResponse": {
        "type": "object",
        "properties": {
          "impactAnalysis": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "effect": {
                  "type": "string"
                },
                "communitySegment": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}