November 2024 Summaries
12 posts from Vonage
Filter
Month:
Year:
Post Summaries
Back to Blog
You can communicate securely with a Vonage driver without revealing your actual phone number using the Masked Calling feature. To deploy this application on Vonage Cloud Runtime, you need to purchase a Vonage phone number and go through a few steps, including deploying new instance and linking it to your application. You can customize the prebuilt application directly on Vonage Cloud Runtime and include its working code in your own application. The call flow works by adding phone numbers and setting an expiration date for how long you'd like them to use the call masking feature, triggering the `onCall` endpoint after waiting for an incoming call to the Vonage number, retrieving paired numbers with the `findPair` function, and handling pair existence and expiration accordingly.
Nov 28, 2024
1,040 words in the original blog post.
A JSON Web Token (JWT) is an open standard for securely transmitting information between parties as a JSON object, commonly used for authentication and authorization in web applications. It can be thought of as a digital ID card that confirms who you are without logging in every time you interact with an application. JWT consists of the header, payload, and signature, which are encoded separately using the Base64url encoding algorithm and concatenated using periods. The payload includes information about the user and their claims, such as the application ID, issued time, expiration time, etc. The signature works as a stamp to validate the token, calculated by encoding the header and payload using the Base64url encoding algorithm and signed using a secret key. JWT can be generated in various ways, including using online generators or SDKs, and its implementation is similar across different programming languages like JavaScript and Python. When used with Network APIs, JWT tokens are sent in the Authorization header as Bearer schema to access protected endpoints.
Nov 26, 2024
923 words in the original blog post.
The Vonage API account is required to complete this tutorial, and a basic Inbound WhatsApp agent needs to be set up first. The flow to send emails allows users to email their company from the Conversational AI agent, ensuring professional inquiries are handled securely and seamlessly integrated with existing workflows. The Email Support Intent is created, followed by collecting user email addresses and questions, and then sending an email using the Send Email node. A subflow is used to organize the flow and keep it clean. Another subflow is created to loop for multiple user inquiries, allowing users to ask more than one question without starting over. A Broad Queries intent is added to handle broad user queries that match multiple intents, providing a polite response and prompting the user to rephrase. Two fallback flows are built to cover unexpected input types and misclassification, avoiding endless loops in the process. The tutorial concludes with five simple but powerful AI Studio flows that can level up conversational AI agents, making them more responsive and user-friendly.
Nov 21, 2024
1,793 words in the original blog post.
RCS Messaging is now Generally Available (GA) in the Vonage Messages API, expanding geographical coverage to include the UK and 10+ other countries beyond its initial German beta launch. RCS messaging offers richer customer experiences through features like Suggested Replies, Rich Cards, and Suggested Actions, which can lead to improved conversion rates. To send RCS messages, developers need to set up an RBM (RCS Business Messaging) Agent, create a Vonage Application enabled for the Messages API, and link the two together before using the Server SDKs to instantiate a Client object and interact with the Vonage APIs. Examples of sending Suggested Reply and Suggested Action messages are provided, showcasing how to send custom messages with text, suggestions, actions, and postback data to enable user interactions. The Vonage Messages API's RCS channel offers numerous use-cases for RCS messaging, including customer surveys, appointment confirmations, and location sharing, which will be explored in future blog posts.
Nov 20, 2024
2,005 words in the original blog post.
The text discusses why PHP is still widely used despite being criticized as "bad" by some developers. The author, Vonage's developer relations lead, believes that the criticism stems from a self-perpetuating myth and a lack of understanding of the language's evolution. They argue that PHP's widespread use has led to its evolution, with new features and improvements being added regularly. The author cites examples such as Fathom Analytics' successful transition to Laravel and the development of new frameworks like FrankenPHP, which is built on top of Go. The text also notes that PHP's community is still strong, despite some frameworks experiencing a decline in usage, and that the language's growth is evident from the increasing number of conferences and attendees. Finally, the author concludes that PHP is modern, has a thriving community, and is worth considering for new projects, even if it may have been criticized as "bad" in the past.
Nov 19, 2024
2,013 words in the original blog post.
The Vonage Python SDK version 4 has been released with a complete redesign that offers improvements and enhancements for all users. The new SDK uses a monorepo structure, Pydantic data models in requests and responses, improved inline documentation, improved error handling, full support for the Vonage Video API, and more. To get started with the v4 SDK, developers need to initialize an instance of the vonage.Vonage class, provide authentication information, and access API methods using named attributes. The new SDK also provides better error handling and more information about HTTP responses. Additionally, some older Vonage APIs that always return an HTTP 200 have been updated with error handling logic to give a similar experience to newer APIs.
Nov 15, 2024
1,283 words in the original blog post.
Railway-Oriented Programming (ROP) is a functional approach to error handling that considers the "Happy Path" as the main track, providing the expected behavior. It aims to handle errors in a way that ensures the full execution of a workflow. ROP uses Monads to create branching between tracks and can be used to replace exception-based approaches. While it has its limitations, such as requiring the same type of failure for all failures, it offers benefits like cleaner code, easier readability, and more explicit intent. By using ROP, developers can handle errors in a more elegant and maintainable way, making their code more robust and reliable.
Nov 14, 2024
1,862 words in the original blog post.
The article describes a hypothetical scenario where the author, using Vonage APIs, wins a game show by manipulating the call flow to intercept and answer questions without actually being on the line. The process involves purchasing a virtual phone number from Vonage, setting up a webhook to receive calls, and using Text-to-Speech (TTS) technology to generate responses in Adam's voice, who is a synthetic character created to provide convincing answers. The author uses Speech-to-Text functionality to transcribe their spoken questions into text, which is then sent to an AI model, GPT4, for analysis. The response from GPT4 is used to provide the correct answer, which is then delivered in Adam's voice to the host, allowing the author to win the game. The article highlights the potential of combining automation and AI technologies to create unique workflows and emphasizes the importance of creativity and flexibility in using these tools.
Nov 12, 2024
1,882 words in the original blog post.
This tutorial guides users in building a phone number lookup app using Vonage's Number Insight API, which provides basic, standard, and advanced lookups for information about a phone number such as carrier, country, and more. The app is built with Node.js and Express, allowing users to input a phone number and retrieve details through an intuitive user interface, with the complete source code available on GitHub. To use this tutorial, users need a Vonage API account and will follow a step-by-step process of setting up their project, installing dependencies, adding environment variables, building the server and front-end, and running the application. The app provides valuable information about phone numbers, including validity, reachability, and roaming status, allowing developers to expand on this knowledge and build upon what has been learned today.
Nov 07, 2024
612 words in the original blog post.
Endless loops in conversational AI agents can be frustrating and disempowering for users. Vonage's AI Studio offers a solution called fallbacks to break these loops, but without a well-designed strategy, it can create more problems. Fallbacks are used to handle unexpected user input or when the agent cannot classify the user's input correctly. AI Studio automatically creates exit points in nodes that allow us to define what should happen when these scenarios occur. To effectively use fallbacks, developers need to create specific flows for unexpected input types and missed classifications, including retry mechanisms and explanation messages to help users understand why their input was problematic. By creating a well-designed fallback flow, developers can differentiate between helpful and frustrating user experiences.
Nov 06, 2024
1,010 words in the original blog post.
The Vonage Video React Native SDK has introduced several key features and improvements in its latest version, enhancing the quality of real-time communication on mobile platforms. Noise suppression improves video and audio call quality by reducing background noise, while single peer connection enables all subscriber streams to be delivered with a single connection to the Media Router. The addition of a privacy manifest is required for apps that collect user data, ensuring compliance with Apple's App Store guidelines. Background blur and replacement allows users to personalize their video experience, while audio fallback keeps calls running despite network quality issues. Other features include toggle between screen and camera video source, end-to-end encryption, adaptive media routing codec, VP8 and H.264 codec support, IP proxy support, full HD video publishing, and live captions. These enhancements demonstrate Vonage's commitment to leading the way in real-time video communication, providing developers with powerful tools to create exceptional experiences.
Nov 05, 2024
1,418 words in the original blog post.
TL;DR: Retrieval Augmented Generation (RAG) systems aim to reduce latency in real-time voice interactions for applications like customer service and enterprise search by optimizing various components such as speech-to-text, information retrieval, LLM processing, and text-to-speech services. To achieve low latency, RAG systems use techniques like vector search, caching, and streaming models, which enable near-instantaneous retrieval and generation of responses. By implementing these optimization strategies, organizations can drastically reduce latency in voice applications using the RAG pipeline, ensuring smoother and more efficient real-time conversations.
Nov 01, 2024
1,765 words in the original blog post.