Jul 29, 2025
6 min read
Innovation in AI development has taken another leap forward! PayPal is proud to announce a game-changing enhancement to its agent toolkit: integration with Amazon Bedrock, empowering developers to seamlessly access cutting-edge foundation models.
Are you ready to supercharge your AI applications without the hassle of managing infrastructure? Let’s dive into how this new partnership simplifies, accelerates, and revolutionizes your workflow.
In today’s fast-evolving landscape, harnessing the power of Large Language Models (LLMs) can be a daunting challenge, especially when considering the complexities of infrastructure management. With PayPal's agent toolkit now supporting Amazon Bedrock, developers can tap into industry-leading models and unlock scalability for their AI solutions.
Imagine access to foundation models for:
Generative problem-solving (Anthropic Claude)
Precise understanding of human intention (Amazon Titan), and
Advanced natural language processing: all from one cohesive integration.
Amazon Bedrock serves as an unshakeable backbone, eliminating bottlenecks and enabling developers to focus on innovation rather than infrastructure. And the best part? It’s simple, accessible, and incredibly powerful.
Ready to unleash your creativity? Here’s how you can integrate PayPal's agent toolkit with Amazon Bedrock in just a few straightforward steps:
Check Your Node.js Version – Ensure you’re working with Node.js v18 or above for seamless compatibility.
Set Up the Environment – Create a .env file in the typescript/examples/bedrock directory using the following code:
# Bedrock Configuration
AWS_ACCESS_KEY_ID=<YOUR_AWS_API_KEY>
AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY>
# PayPal Configuration
PAYPAL_CLIENT_ID=<YOUR_PAYPAL_CLIENT_ID>
PAYPAL_SECRET=<YOUR_PAYPAL_SECRET>
Install Bedrock – Install Bedrock by running the following commands in /typescript:
npm install
npm run build
npm run link
Install the Agent Toolkit – Use PayPal’s agent toolkit to unlock powerful functions designed to drive your integration forward. Install the agent toolkit by running the following commands in /typescript/examples/bedrock:
npm install
npm link @paypal/agent-toolkit
Add Prompts – Customize user interactions by adding prompts to userMessage in typescript/examples/bedrock/index.ts.
Compile Your TypeScript Code – Ensure a clean, functional codebase for optimal results. Compile using the command: npx ts-node index.ts
Utilize Agent Toolkit Functions – Import the toolkit into your application and use its features to build transformative AI-powered solutions using the following code:
import { PayPalAgentToolkit, ALL_TOOLS_ENABLED } from '@paypal/agent-toolkit/bedrock';
import { BedrockRuntimeClient, ConverseCommand, Message } from '@aws-sdk/client-bedrock-runtime';
const ppConfig = {
clientId: process.env.YOUR_PAYPAL_CLIENT_ID || '',
clientSecret: process.env.YOUR_PAYPAL_CLIENT_SECRET || '',
configuration: { actions: ALL_TOOLS_ENABLED,
context: {
sandbox: true,
}
}
}
const paypalToolkit = new PayPalAgentToolkit(ppConfig);
Use PayPal's agent toolkit's functions and other tools as your integration requires.
let messages: Message[] = [
{
role: "user",
content: [{ text: userMessage }],
}
]
const response = await client.send(
new ConverseCommand({
modelId: modelId,
messages: messages,
toolConfig: {
tools: tools
}
}),
);
With this dynamic synergy, you’re just moments away from bringing sophisticated AI experiences to life.
Forget about complexities. PayPal’s integration is designed to provide hassle-free access to Amazon Bedrock’s tools without requiring you to manage infrastructure.
Whether you're building AI chatbots, predictive tools, or automating workflows, PayPal's agent toolkit offers functions that adapt to your needs.
The partnership with Amazon Bedrock enables reliable scalability, so your applications can grow alongside your ambition.
PayPal’s agent toolkit opens the doors to unmatched AI development possibilities. Whether you’re a startup exploring generative modeling, or a seasoned developer scaling advanced solutions, this integration brings the future to your fingertips.
It’s time to transform breaking-edge technology into real-world innovation.
Start building with full confidence today by integrating PayPal’s agent toolkit with Amazon Bedrock. Head to our developer resources for detailed guides, examples, and tips to make the most of this powerful new addition.
8 min read
5 min read
5 min read