### Example JSON Response from Fireflies Context API Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This JSON snippet shows an example response from the Fireflies Context API. It includes fields such as 'ok', 'label', 'language', 'confidence', 'suggestionFor', 'entities', and 'text', providing contextual information about the suggested intent. ```json { "ok":true, "label": "action item", "language": "en", "confidence": 0.765234, "suggestionFor": "subject", "entities": [], "text": "i will send you the letter" } ``` -------------------------------- ### Example JSON Response with Entities from Fireflies Context API Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This JSON snippet shows an example response from the Fireflies Context API including entities. It includes fields such as 'ok', 'label', 'language', 'confidence', 'subject', 'object', 'suggestionFor', 'entities', and 'text', providing contextual information about the suggested intent. ```json { "ok":true, "label": "calendar", "language": "en", "confidence": 0.765234, "subject": "Ashley", "object": "Bruno", "suggestionFor": "object", "entities": [ { "type": "attendees", "values": ["Ashley", "Bruno", "Cory"] }, { "type": "time", "values": [Date] } ... ], "text": "hey Bruno lets set up a time next week with Cory" } ``` -------------------------------- ### Example JSON Response for Feedback API Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md Illustrates the structure of a successful JSON response from the Fireflies Feedback API, indicating that the feedback was accepted. ```JSON { "ok":true, "result": "accept" } ``` -------------------------------- ### Generating Documentation Programmatically with Whiteboard Source: https://github.com/firefliesai/docs-fireflies/blob/master/README.md This code snippet demonstrates how to generate API documentation programmatically using the Whiteboard module in a NodeJS environment. It requires the 'whiteboard' module and utilizes promises to handle the generation process and any potential errors. ```JavaScript var Whiteboard = require('whiteboard'); Whiteboard.generate() .then(function(){ // Generation was successful }) .catch(function(){ // Handle error }) ``` -------------------------------- ### Fetching Context Information with Fireflies API - Bash Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This Bash snippet demonstrates how to fetch context information using the Fireflies API using a curl command. It sends a POST request to the context endpoint with the 'code' parameter in the JSON payload. It also includes the Authorization and Content-Type headers. ```bash curl "https://dev.firefliesapp.com/api/v1/context" \ -H "Authorization: Bearer API_KEY" \ -H "Content-Type: application/json" \ -X POST \ -d '{"code":"CODE_FROM_CLASSIFY_SUGGESTION"}' ``` -------------------------------- ### Authorizing Fireflies API - Bash Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This code snippet demonstrates how to authorize access to the Fireflies API using a bash script. It involves passing the API key in the Authorization header with a Bearer token. ```bash curl "api_endpoint_here" \ -H "Authorization: Bearer API_KEY" ``` -------------------------------- ### Fetching Context Information with Fireflies API - Python Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This Python snippet demonstrates how to fetch context information using the Fireflies API. It defines a 'code' variable and passes it as a parameter in the request to the context endpoint. ```python code = "CODE_FROM_CLASSIFY_SUGGESTION" fireflies.context({"code": code}) ``` -------------------------------- ### Authorizing Fireflies API - Python Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This code snippet demonstrates how to authorize access to the Fireflies API using the Python client library. It requires the 'fireflies' package. Replace 'API_KEY' with your actual API key. ```python import fireflies fireflies.authorize('API_KEY') ``` -------------------------------- ### Fetching Context Information with Fireflies API - JavaScript Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This JavaScript snippet demonstrates how to fetch context information using the Fireflies API. It takes a 'code' parameter obtained from the Classify API and makes a request to the context endpoint. The response is then handled in a callback function, logging any errors. ```javascript fireflies.context({ code: 'CODE_FROM_CLASSIFY_SUGGESTION' /* ex: 'FF0001-wm5h3fe1f8ak' */ }, function(error, response) { if (error) { console.log(error) } }); ``` -------------------------------- ### Classifying Text Content - Bash Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This code snippet demonstrates how to classify text content using the Fireflies API with a bash script. It sends a POST request with the text in the request body and includes the API key in the Authorization header. ```bash curl "https://dev.firefliesapp.com/api/v1/classify" \ -H "Authorization: Bearer API_KEY" \ -H "Content-Type: application/json" \ -X POST \ -d '{"text":"sample sentence uttered from end user"}' ``` -------------------------------- ### Authorizing Fireflies API - JavaScript Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This code snippet demonstrates how to authorize access to the Fireflies API using a JavaScript client library. It requires the 'node-fireflies-ml' package. Replace 'API_KEY' with your actual API key. ```javascript var fireflies = require('node-fireflies-ml'); fireflies.authorize('API_KEY'); ``` -------------------------------- ### Submit User Feedback with Fireflies API using cURL Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md Submits user feedback to the Fireflies API using a cURL command. It sends a POST request with the intent's code and the user's response (accept) in JSON format. The API key must be provided in the Authorization header. ```Bash curl "https://dev.firefliesapp.com/api/v1/feedback" \ -H "Authorization: Bearer API_KEY" \ -H "Content-Type: application/json" \ -X POST \ -d '{"code":"CODE_FROM_CLASSIFY_SUGGESTION", "result":"accept"}' ``` -------------------------------- ### Classifying Text Content - Python Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This code snippet demonstrates how to classify text content using the Fireflies API with Python. It sends a text string to the API and prints the extracted intents. It requires the 'fireflies' package. ```python text = "sample sentence uttered from end user" classifications = fireflies.classify({"text": text}) for intent in classifications['intents']: print intent ``` -------------------------------- ### Classifying Text Content - JavaScript Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md This code snippet demonstrates how to classify text content using the Fireflies API with JavaScript. It sends a text string to the API and processes the returned intents. It requires the 'node-fireflies-ml' package. ```javascript fireflies.classify({ text: 'sample sentence uttered from end user' }, function(error, response) { if (error === null) { response['intents'].forEach(function(c) { console.log(c); }); } }); ``` -------------------------------- ### Submit User Feedback with Fireflies API Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md Submits user feedback to the Fireflies API regarding a suggested intent from the Classify API. It requires the intent's code and the user's response (accept, decline, ignore, or spam). ```Python code = "CODE_FROM_CLASSIFY_SUGGESTION" result = "accept" fireflies.feedback({"code": code, "result": result}) ``` -------------------------------- ### Submit User Feedback with Fireflies API Source: https://github.com/firefliesai/docs-fireflies/blob/master/source/index.md Submits user feedback to the Fireflies API regarding a suggested intent from the Classify API. It requires the intent's code and the user's response (accept, decline, ignore, or spam). The function logs any errors that occur during the API call. ```JavaScript fireflies.feedback({ code: 'CODE_FROM_CLASSIFY_SUGGESTION', /* ex: 'FF0001-wm5h3fe1f8ak' */ result: 'accept' }, function(error, response) { if (error) { console.log(error) } }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.